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


In This Topic
    WidthPercent Property (NBarSeriesBase)
    In This Topic
    Controls the width of the bars in percents of the floor grid cell width.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Options")>
    <System.ComponentModel.DescriptionAttribute("Controls the width of the bars in percents of the floor grid cell width.")>
    <System.ComponentModel.DefaultValueAttribute(70)>
    Public Property WidthPercent As System.Single
    'Usage
     
    
    Dim instance As NBarSeriesBase
    Dim value As System.Single
     
    instance.WidthPercent = value
     
    value = instance.WidthPercent
    [System.ComponentModel.Category("Options")]
    [System.ComponentModel.Description("Controls the width of the bars in percents of the floor grid cell width.")]
    [System.ComponentModel.DefaultValue(70)]
    public System.float 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