Spread Windows Forms 12.0 Product Documentation
AlignHorz Property (SuperEditBase)

FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : AlignHorz Property
Gets or sets the horizontal alignment of the control's contents.
Public Overrides Property AlignHorz As HorizontalAlignment
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

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

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


SuperEditBase Class
SuperEditBase Members
HorizontalAlignment Enumeration
AlignText Property