Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Standard.v4.4 Assembly / Xceed.Chart.Standard Namespace / ChartText Class / VertAlign Property
Example


In This Topic
    VertAlign Property (ChartText)
    In This Topic
    The vertical alignment of the texts relative the text origin point.
    Syntax
    'Declaration
     
    <CategoryAttribute("Alignment")>
    <DescriptionAttribute("The vertical alignment of the texts relative the text origin point.")>
    Public Property VertAlign As VertAlign
    'Usage
     
    Dim instance As ChartText
    Dim value As VertAlign
     
    instance.VertAlign = value
     
    value = instance.VertAlign
    [Category("Alignment")]
    [Description("The vertical alignment of the texts relative the text origin point.")]
    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 ChartLabel =  New ChartLabel() 
    label.Text = "Offset of the origin point 10"
    label.HorizontalMargin = 0
    label.VerticalMargin = 0
    label.TextProps.HorzAlign = StringAlignment.Near
    label.TextProps.VertAlign = StringAlignment.Near
    label.TextProps.OffsetX = 10
    label.TextProps.OffsetY = 10
    ChartControl.Labels.Add(label)
    ChartLabel label = new ChartLabel();
    label.Text = "Offset of the origin point 10";
    label.HorizontalMargin = 0;
    label.VerticalMargin = 0;
    label.TextProps.HorzAlign = StringAlignment.Near;
    label.TextProps.VertAlign = StringAlignment.Near;
    label.TextProps.OffsetX = 10;
    label.TextProps.OffsetY = 10;
    ChartControl.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