Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / BarSeries Class / WidthPercent Property
Example


In This Topic
    WidthPercent Property (BarSeries)
    In This Topic
    Controls the width of the bars in percents of the floor grid cell width.
    Syntax
    'Declaration
     
    <CategoryAttribute("Options")>
    <DescriptionAttribute("Controls the width of the bars in percents of the floor grid cell width.")>
    <DefaultValueAttribute(70)>
    Public Property WidthPercent As Integer
    'Usage
     
    Dim instance As BarSeries
    Dim value As Integer
     
    instance.WidthPercent = value
     
    value = instance.WidthPercent
    [Category("Options")]
    [Description("Controls the width of the bars in percents of the floor grid cell width.")]
    [DefaultValue(70)]
    public int WidthPercent {get; set;}
    Remarks
    By default set to 70.
    Example
    The following example changes the width percent to 50 (half of the cell).
    bar.WidthPercent = 50
    bar.WidthPercent = 50;
    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