System.Web.UI.WebControls Namespace CheckBox Class
Sets or retrieves the alignment of Text associated with a CheckBox control.
Inline |
<asp:checkbox textalign = enumValue ... > |
Script |
CheckBox.TextAlign [ = enumValue ] |
The property is read/write with a default value of Right.
Use the TextAlign property to specify the alignment of the text label associated with a CheckBox control. You can specify whether the text label appears to the right or left of the check box. Use the Text property to specify the label text.
The below code snippet demonstrates how to set the TextAlign property at design time.
<asp:CheckBox id = "checkbox1" runat = "server"
AutoPostBack = "True"
Text = "Item Checked"
TextAlign = "Right"
onCheckedChanged = "Check_Clicked"/>
CheckBox Members