CheckBox::TextAlign Property
.NET Framework (current version)
Gets or sets the alignment of the text label associated with the CheckBox control.
Assembly: System.Web (in System.Web.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The specified value is not one of the TextAlign values. |
The following example demonstrates how to use the TextAlign property to display the text label to the right of the check box.
Note |
|---|
The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see ASP.NET Web Forms Page Code Model. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
