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


In This Topic
    TextStyle Property (NLegendTitle)
    In This Topic
    The text properties of the legend header or footer.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The text properties of the legend header or footer.")>
    <System.ComponentModel.EditorAttribute(Nevron.Editors.NTextStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)>
    Public Property TextStyle As NTextStyle
    'Usage
     
    
    Dim instance As NLegendTitle
    Dim value As NTextStyle
     
    instance.TextStyle = value
     
    value = instance.TextStyle
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The text properties of the legend header or footer.")]
    [System.ComponentModel.Editor(Nevron.Editors.NTextStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)]
    public NTextStyle TextStyle {get; set;}
    Remarks
    With the help of this property you can control the font of the legend header or footer.
    Example
    The following code modifies the font used to display the legend header and footer.
    legend.Footer.Text = "Legend Footer"
    legend.Footer.TextStyle.FontStyle.Font = New Font("Arial", 22)
    legend.Header.Text = "Legend Header"
    legend.Header.TextStyle.FontStyle.Font = New Font("Arial", 22)
    legend.Footer.Text = "Legend Footer";
    legend.Footer.TextStyle.FontStyle.Font = new Font("Arial", 22);
    legend.Header.Text = "Legend Header";
    legend.Header.TextStyle.FontStyle.Font = new Font("Arial", 22);
    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