ASP.NET Panel DirectionProperty


Panel 控件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>
 
Property Description
direction Specifies the content display direction of the Panel.

Possible values:

  • NotSet - Default. Content direction is not set.
  • LeftToRight - Content direction is from left to right.
  • RightToLeft - Content direction is from right to left.


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>

Try it »

Panel 控件Panel Control Other Extensions