ASP.NET Panel DirectionProperty
Panel Control
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 controls containing text within the Panel.
Syntax
<asp:Panel Direction="direction" runat="server">
Some Content
</asp:Panel>
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>
<asp:Panel id="pan1" runat="server" Direction="RightToLeft">
Hello!
</asp:Panel>
</form>
Try it »
Panel Control Other Extensions