Propriedade ChartSheetBase.GapDepth

Obtém ou define a distância entre a série de dados em Microsoft.Office.Tools.Excel.ChartSheetBase3d, como uma porcentagem da largura do marcador.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (em Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Sintaxe

'Declaração
Public Property GapDepth As Integer
public int GapDepth { get; set; }

Valor de propriedade

Tipo: System.Int32
A distância entre a série de dados em Microsoft.Office.Tools.Excel.ChartSheetBase3d, como uma porcentagem da largura do marcador.O valor desta propriedade deve estar entre 0 e 500.

Exemplos

O exemplo de código a seguir usa a propriedade de GapDepth para definir a distância entre a série de dados em Microsoft.Office.Tools.Excel.ChartSheetBase atual a 400 por cento da largura do marcador.

Private Sub AdjustGapDepth()
    Globals.Sheet1.Range("A1", "A5").Value2 = 22
    Globals.Sheet1.Range("B1", "B5").Value2 = 55

    Me.SetSourceData(Globals.Sheet1.Range("A1", "B5"), _
        Excel.XlRowCol.xlColumns)
    Me.ChartType = Excel.XlChartType.xl3DBarClustered
    Me.GapDepth = 400
End Sub
private void AdjustGapDepth()
{
    Globals.Sheet1.Range["A1", "A5"].Value2 = 22;
    Globals.Sheet1.Range["B1", "B5"].Value2 = 55;

    this.SetSourceData(Globals.Sheet1.Range["A1", "B5"],
        Excel.XlRowCol.xlColumns);
    this.ChartType = Excel.XlChartType.xl3DBarClustered; 
    this.GapDepth = 400;
}

Segurança do .NET Framework

Consulte também

Referência

ChartSheetBase Classe

Namespace Microsoft.Office.Tools.Excel