Login::TextLayout Property
Specifies the position of each label relative to its associated text box for the Login control.
Assembly: System.Web (in System.Web.dll)
public: property LoginTextLayout TextLayout { virtual LoginTextLayout get(); virtual void set(LoginTextLayout value); }
Property Value
Type: System.Web.UI.WebControls::LoginTextLayoutOne of the LoginTextLayout enumeration values. The default is TextOnLeft.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The selected value is not one of the LoginTextLayout enumeration values. |
You can use the TextLayout property to specify the position of labels relative to their associated text boxes for the Login control. This property is set using one of the LoginTextLayout enumeration values. The following table lists the possible values.
LoginTextLayout value | Description |
|---|---|
Places labels to the left of the associated text entry fields. | |
Places labels above the associated text entry fields. |
The following code example demonstrates using the LoginTextLayout enumeration to set the TextLayout property of a Login control.
Available since 2.0