Nevron .NET Vision
Nevron.GraphicsCore Namespace / NStringFormatStyle Class / VertAlign Property
Example


In This Topic
    VertAlign Property (NStringFormatStyle)
    In This Topic
    The vertical alignment of the texts relative the text origin point.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("StringFormat")>
    <System.ComponentModel.DescriptionAttribute("The vertical alignment of the texts relative the text origin point.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property VertAlign As VertAlign
    'Usage
     
    
    Dim instance As NStringFormatStyle
    Dim value As VertAlign
     
    instance.VertAlign = value
     
    value = instance.VertAlign
    [System.ComponentModel.Category("StringFormat")]
    [System.ComponentModel.Description("The vertical alignment of the texts relative the text origin point.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [System.Xml.Serialization.XmlAttribute()]
    public VertAlign VertAlign {get; set;}
    Remarks
    The possible values are Center, Top, Bottom.
    Example
    The following example creates a label ten pixels away from the left top corner of the control.
    Dim label As NLabel =  New NLabel() 
    label.Text = "Offset of the origin point 10"
    label.HorizontalMargin = 0
    label.VerticalMargin = 0
    label.TextProps.HorzAlign = HorzAlignNear
    label.TextProps.VertAlign = HorzAlignNear
    label.TextProps.OffsetX = 10
    label.TextProps.OffsetY = 10
    NChartControl.Labels.Add(label)
    NLabel label = new NLabel();
    label.Text = "Offset of the origin point 10";
    label.HorizontalMargin = 0;
    label.VerticalMargin = 0;
    label.TextProps.HorzAlign = HorzAlignNear;
    label.TextProps.VertAlign = HorzAlignNear;
    label.TextProps.OffsetX = 10;
    label.TextProps.OffsetY = 10;
    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