Xceed Chart for WinForms v4.4 Documentation
WidthPercent Property (BarSeries)
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > BarSeries Class : WidthPercent Property
Controls the width of the bars in percents of the floor grid cell width.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("Controls the width of the bars in percents of the floor grid cell width.")>
<CategoryAttribute("Options")>
Public Property WidthPercent As Integer
'Usage
 
Dim instance As BarSeries
Dim value As Integer
 
instance.WidthPercent = value
 
value = instance.WidthPercent
[DefaultValue()]
[Description("Controls the width of the bars in percents of the floor grid cell width.")]
[Category("Options")]
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

Reference

BarSeries Class
BarSeries Members