See Also

TextBox Class  | TextBox Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Alignment Property

Gets or sets the alignment of text within the bounds of the control.

[Visual Basic]
Public Property Alignment As TextAlignment
[C#]
public TextAlignment Alignment {get; set;}

Return Type

TextAlignment enumeration. The default value is TextAlignment.Left.

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.TextBox1.Alignment = TextAlignment.Center; 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
   Me.TextBox1.Alignment = TextAlignment.Center
End Sub

See Also

TextBox Class  | TextBox Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.