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


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > BarSeries Class : BarStyle Property
Controls the style of the bars.
Syntax
'Declaration
 
<CategoryAttribute("Options")>
<DescriptionAttribute("Controls the style of the bars.")>
<DefaultValueAttribute()>
Public Property BarStyle As BarStyle
'Usage
 
Dim instance As BarSeries
Dim value As BarStyle
 
instance.BarStyle = value
 
value = instance.BarStyle
[Category("Options")]
[Description("Controls the style of the bars.")]
[DefaultValue()]
public BarStyle BarStyle {get; set;}
Remarks
By default set to Bar. If set to SmoothEdgeBar or CutEdgeBar the user can control the edge percent and whether the bar top and bottom are displayed in smooth or cut manner with the help of the BarEdgePercent, HasTop and HasBottom properties respectively.
Example
The following example displays a smooth edge bar chart with edge 30% on top and bottom.
bar.BarStyle = BarStyle.SmoothEdgeBar
bar.BarEdgePercent = 30
bar.HasTopEdge = True
bar.HasBottomEdge = True
bar.BarStyle = BarStyle.SmoothEdgeBar;
bar.BarEdgePercent = 30;
bar.HasTopEdge = true;
bar.HasBottomEdge = true;
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