Nevron .NET Vision
Nevron.Chart Namespace / NBarSeriesBase Class / GapPercent Property
Example


In This Topic
    GapPercent Property
    In This Topic
    Controls the gap between cluster bars in percents of the floor grid cell width.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Options")>
    <System.ComponentModel.DescriptionAttribute("Controls the gap between the bars in percents of the floor grid cell width.")>
    <System.ComponentModel.DefaultValueAttribute(0)>
    Public Property GapPercent As System.Single
    'Usage
     
    
    Dim instance As NBarSeriesBase
    Dim value As System.Single
     
    instance.GapPercent = value
     
    value = instance.GapPercent
    [System.ComponentModel.Category("Options")]
    [System.ComponentModel.Description("Controls the gap between the bars in percents of the floor grid cell width.")]
    [System.ComponentModel.DefaultValue(0)]
    public System.float GapPercent {get; set;}
    Remarks
    By default set to 0 (no gap).
    Example
    The following example creates a gap between the adjacent bars of a cluster bar chart.
    Dim bar1 As NBarSeries =  NChart.Series.Add(SeriesType.Bar)
    Dim bar2 As NBarSeries =  NChart.Series.Add(SeriesType.Bar)
    bar2.MultiBarMode = MultiBarMode.Clustered
    bar1.GapPercent = 10
    bar2.GapPercent = 10
    NBarSeries bar1 = NChart.Series.Add(SeriesType.Bar);
    NBarSeries bar2 = NChart.Series.Add(SeriesType.Bar);
    bar2.MultiBarMode = MultiBarMode.Clustered;
    bar1.GapPercent = 10;
    bar2.GapPercent = 10;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also