Compartilhar via


Propriedade ChartSheet.GapDepth

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

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

Sintaxe

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

Valor de propriedade

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

Exemplos

O exemplo de código usa a propriedade de GapDepth para definir a distância entre a série de dados em Microsoft.Office.Tools.Excel.ChartSheet 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

ChartSheet Interface

Namespace Microsoft.Office.Tools.Excel