ASP.NET Direction Property
Definition and Usage
The Direction property is used to set or return the content display direction of the Panel.
This property is used to specify the display direction of the control containing text within the Panel.
Syntax
<asp:Panel Direction="direction" runat="server"> Some Content </asp:Panel>
Property | Description |
---|---|
direction |
Specifies the content display direction of the panel. Possible values:
|
Example
The following example changes the Direction property of the Panel control:
<form runat="server"> <asp:Panel id="pan1" runat="server"> Direction="RightToLeft"> Hello! </asp:Panel> </form>
Example
- Set the Direction Property for Panel Control