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


In This Topic
    BarStyle Property (BarSeries)
    In This Topic
    Controls the style of the bars.
    Syntax
    'Declaration
     
    <CategoryAttribute("Options")>
    <DescriptionAttribute("Controls the style of the bars.")>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    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(Mono.Cecil.CustomAttributeArgument)]
    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