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


In This Topic
    BarShape Property
    In This Topic
    Controls the shape of the bars.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Options")>
    <System.ComponentModel.DescriptionAttribute("Controls the shape of the bars.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property BarShape As BarShape
    'Usage
     
    
    Dim instance As NBarSeriesBase
    Dim value As BarShape
     
    instance.BarShape = value
     
    value = instance.BarShape
    [System.ComponentModel.Category("Options")]
    [System.ComponentModel.Description("Controls the shape of the bars.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public BarShape BarShape {get; set;}
    Remarks
    If this property is set to SmoothEdgeBar or CutEdgeBar you can control the edge percent and whether the bar top and bottom ends are smoothed or cut. This is done 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.BarShape = BarShape.SmoothEdgeBar
    bar.BarEdgePercent = 30
    bar.HasTopEdge = True
    bar.HasBottomEdge = True
    bar.BarShape = BarShape.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