Nevron .NET Vision
Nevron.Chart Namespace / NLabel Class / TextStyle Property
Example


In This Topic
    TextStyle Property (NLabel)
    In This Topic
    Gets or sets the NTextStyle object applied to the label's text.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Text")>
    <System.ComponentModel.DescriptionAttribute("Gets or sets the NTextStyle object applied to the label's text")>
    <System.ComponentModel.EditorAttribute(Nevron.Editors.NTextStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)>
    Public Property TextStyle As NTextStyle
    'Usage
     
    
    Dim instance As NLabel
    Dim value As NTextStyle
     
    instance.TextStyle = value
     
    value = instance.TextStyle
    [System.ComponentModel.Category("Text")]
    [System.ComponentModel.Description("Gets or sets the NTextStyle object applied to the label's text")]
    [System.ComponentModel.Editor(Nevron.Editors.NTextStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)]
    public NTextStyle TextStyle {get; set;}
    Example
    The following example creates a label and sets its font.
    Dim label As NLabel =  New NLabel()
    label.Text = "Hello world"
    label.TextStyle.FontStyle = New NFontStyle("Arial", 22)
    nChartControl1.Labels.Add(label)
    NLabel label = new NLabel();
    label.Text = "Hello world";
    label.TextStyle.FontStyle = new NFontStyle("Arial", 22);
    nChartControl1.Labels.Add(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