Spread Windows Forms 13.0 Product Documentation
FarPoint.Win Assembly / FarPoint.Win Namespace / SuperEditBase Class / AlignHorz Property
Example


In This Topic
    AlignHorz Property (SuperEditBase)
    In This Topic
    Gets or sets the horizontal alignment of the control's contents.
    Syntax
    'Declaration
     
    Public Overrides Property AlignHorz As HorizontalAlignment
    'Usage
     
    Dim instance As SuperEditBase
    Dim value As HorizontalAlignment
     
    instance.AlignHorz = value
     
    value = instance.AlignHorz
    public override HorizontalAlignment AlignHorz {get; set;}

    Property Value

    HorizontalAlignment setting that determines the alignment of contents
    Remarks

    Specify the alignment of the text and picture in the control, if applicable, by setting the AlignText property.

    Example
    This example shows the use of this property.
    control.Text = "Alignment test";
    control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center;
    control.AlignVert = FarPoint.Win.VerticalAlignment.Top;
    
    control.Text = "Alignment test"
    control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center
    control.AlignVert = FarPoint.Win.VerticalAlignment.Top
    
    See Also