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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SuperEditBase Class
SuperEditBase Members
HorizontalAlignment Enumeration
AlignText Property

 

 


Copyright © GrapeCity, inc. All rights reserved.