Compartir a través de


ChartSheetBase.GapDepth (Propiedad)

Obtiene o establece la distancia entre la serie de datos de un objeto Microsoft.Office.Tools.Excel.ChartSheetBase en 3D, como un porcentaje del ancho del marcador.

Espacio de nombres:  Microsoft.Office.Tools.Excel
Ensamblado:  Microsoft.Office.Tools.Excel.v4.0.Utilities (en Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Sintaxis

'Declaración
Public Property GapDepth As Integer
public int GapDepth { get; set; }

Valor de propiedad

Tipo: System.Int32
Distancia existente entre la serie de datos de un objeto Microsoft.Office.Tools.Excel.ChartSheetBase en 3D, como un porcentaje del ancho del marcador.El valor de esta propiedad debe estar entre 0 y 500.

Ejemplos

El ejemplo de código siguiente utiliza la propiedad GapDepth para establecer la distancia entre la serie de datos del objeto Microsoft.Office.Tools.Excel.ChartSheetBase actual en el 400 por ciento del ancho del 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;
}

Seguridad de .NET Framework

Vea también

Referencia

ChartSheetBase Clase

Microsoft.Office.Tools.Excel (Espacio de nombres)