Nevron .NET Vision
Nevron.Chart Namespace / NSeries Class / DataLabelStyle Property
Example


In This Topic
    DataLabelStyle Property (NSeries)
    In This Topic
    Gets or sets the NDataLabelStyle object controlling the default appearance of the data point labels.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Styles")>
    <System.ComponentModel.DescriptionAttribute("Gets or sets the default data label style for the series.")>
    <System.ComponentModel.EditorAttribute(Nevron.Editors.NDataLabelStyleTypeEditor, System.Drawing.Design.UITypeEditor)>
    Public Property DataLabelStyle As NDataLabelStyle
    'Usage
     
    
    Dim instance As NSeries
    Dim value As NDataLabelStyle
     
    instance.DataLabelStyle = value
     
    value = instance.DataLabelStyle
    [System.ComponentModel.Category("Styles")]
    [System.ComponentModel.Description("Gets or sets the default data label style for the series.")]
    [System.ComponentModel.Editor(Nevron.Editors.NDataLabelStyleTypeEditor, System.Drawing.Design.UITypeEditor)]
    public NDataLabelStyle DataLabelStyle {get; set;}
    Remarks
    The data labels are explanatory texts displayed for the series data points. The NDataLabelStyle class controls their appearance, format, alignment and other related features.
    Example
    The following code will display the value and the the label of a data point.
    series.DataLabelStyle.Format = "<value> <label>"
    series.DataLabelStyle.Format = "<value> <label>";
    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