ASP.NET Panel Direction 屬性

定義和用法
Direction 屬性用於設置或返回 Panel 的內容顯示方向。
該屬性用於規定 Panel 中包含文本的控件的顯示方向。
語法
<asp:Panel Direction="direction" runat="server">
Some Content
</asp:Panel>
Some Content
</asp:Panel>
屬性 | 描述 |
---|---|
direction | 規定 panel 的內容顯示方向。 可能的值:
|
實例
下麵的實例更改了 Panel 控件的 Direction 屬性:
<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>
