Nevron .NET Vision
Nevron.GraphicsCore Namespace / NTextStyle Class / FillStyle Property
Example


In This Topic
    FillStyle Property (NTextStyle)
    In This Topic
    Controls the fill style applied on the text.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Appearance")>
    <System.ComponentModel.DescriptionAttribute("Controls the fill style of the text.")>
    Public Property FillStyle As NFillStyle
    'Usage
     
    
    Dim instance As NTextStyle
    Dim value As NFillStyle
     
    instance.FillStyle = value
     
    value = instance.FillStyle
    [System.ComponentModel.Category("Appearance")]
    [System.ComponentModel.Description("Controls the fill style of the text.")]
    public NFillStyle FillStyle {get; set;}
    Remarks
    You may also render texts with different fill styles if TextType is set to TextFormat.Formatted. For more information consult the documentation regarding XML formatted texts.
    Example
    The following example creates a new label with different color and font than the default ones.
    Dim label As NLabel =  New NLabel() 
    label.Text = "Label with different color \n and font"
    label.TextType = TextFormat.Multiline
    label.TextProps.FillStyle = New NColofFillStyle(Color.Aqua)
    label.TextProps.Font = New Font("Arial", 22)
    NChartControl.Labels.Add(label)
    NLabel label = new NLabel();
    label.Text = "Label with different color \n and font";
    label.TextType = TextFormat.Multiline
    label.TextProps.FillStyle = new NColofFillStyle(Color.Aqua);
    label.TextProps.Font = new Font("Arial", 22);
    NChartControl.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