Spread Windows Forms 11.0 Product Documentation
AlignHorz Property (SuperEditBase)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : AlignHorz Property
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

Reference

SuperEditBase Class
SuperEditBase Members
HorizontalAlignment Enumeration
AlignText Property