Latest web development tutorials

ASP.NET Panel Direction property

Control Panel Control Panel

Definition and Usage

Direction property sets or returns the content Panel display direction.

This attribute is used to specify the display direction Panel contains the text of the control.

grammar

<asp:Panel Direction="direction" runat="server">
Some Content
</asp:Panel>
属性 描述
direction 规定 panel 的内容显示方向。

可能的值:

  • NotSet - 默认。不设置内容方向
  • LeftToRight - 内容方向为从左到右
  • RightToLeft - 内容方向为从右到左


Examples

The following example changes the Direction property Panel control:

<form runat="server">
<asp:Panel id="pan1" runat="server" Direction="RightToLeft">
Hello!
</asp:Panel>
</form>

The demonstration >>

Control Panel Control Panel