ChartSheetBase.GapDepth 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置三维 ChartSheetBase 中的数据系列之间的距离(以标记宽度的百分比形式表示)。
public int GapDepth { get; set; }
属性值
三维 ChartSheetBase 中的数据系列之间的距离(以标记宽度的百分比形式表示)。 此属性的值必须介于 0 到 500 之间。
示例
下面的代码示例使用 GapDepth 属性将当前数据序列之间的距离设置 Microsoft.Office.Tools.Excel.ChartSheetBase 为标记宽度的400%。
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;
}
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