Nevron .NET Vision
Nevron.Chart Namespace / NBarSeries Class / OriginMode Property
Example


In This Topic
    OriginMode Property (NBarSeries)
    In This Topic
    Specifies which value should be used as a bar origin.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Options")>
    <System.ComponentModel.DescriptionAttribute("Specifies which value should be used as bar origin.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property OriginMode As SeriesOriginMode
    'Usage
     
    
    Dim instance As NBarSeries
    Dim value As SeriesOriginMode
     
    instance.OriginMode = value
     
    value = instance.OriginMode
    [System.ComponentModel.Category("Options")]
    [System.ComponentModel.Description("Specifies which value should be used as bar origin.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public SeriesOriginMode OriginMode {get; set;}
    Remarks
    If this property is set to SeriesOriginMode.CustomOrigin the bar origin is specified by the Origin property. If this property is set to SeriesOriginMode.MaxValue the origin is the max value of the bar series. If this property is set to SeriesOriginMode.MinValue the origin is the min value of the bar series.

    By default this property is set to SeriesOriginMode.CustomOrigin.

    Example
    The following code displays a bar series with origin value 20.
    bar.OriginMode = SeriesOriginMode.CustomOrigin
    bar.Origin = 20
    bar.OriginMode = SeriesOriginMode.CustomOrigin;
    bar.Origin = 20;
    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