Interface IOfficeChartDropBar
Represents ChartDropBarImpl.
Inherited Members
Namespace: Syncfusion.OfficeChart
Assembly: Syncfusion.OfficeChart.NET.dll
Syntax
public interface IOfficeChartDropBar : IOfficeChartFillBorder
Properties
Gap
Gets or sets the drop bar gap width (0 to 100%).
Declaration
int Gap { get; set; }
Property Value
Type |
---|
System.Int32 |
Examples
IPresentation presentation = Presentation.Open("Template.pptx");
ISlide slide = presentation.Slides[0];
//Get the chart from slide
IPresentationChart chart = slide.Shapes[0] as IPresentationChart;
//Get the chart serie option
IOfficeChartFormat chartFormat = chart.Series[0].SerieFormat.CommonSerieOptions;
//Get the First Drop Bar
IOfficeChartDropBar dropBar = chartFormat.FirstDropBar;
//Set the gap width of data series in chart
dropBar.Gap = 100;
//Save the presentation
presentation.Save("Output.pptx");
//Close the presentation
presentation.Close();
Dim presentation__1 As IPresentation = Presentation.Open("Template.pptx")
Dim slide As ISlide = presentation__1.Slides(0)
'Get the chart from slide
Dim chart As IPresentationChart = TryCast(slide.Shapes(0), IPresentationChart)
'Get the chart serie option
Dim chartFormat As IOfficeChartFormat = chart.Series(0).SerieFormat.CommonSerieOptions
'Get the First Drop Bar
Dim dropBar As IOfficeChartDropBar = chartFormat.FirstDropBar
'Set the gap width of data series in chart
dropBar.Gap = 100
'Save the presentation
presentation__1.Save("Output.pptx")
'Close the presentation
presentation__1.Close()