PanelStyle.Direction プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As PanelStyle Dim value As ContentDirection value = instance.Direction instance.Direction = value
public: virtual property ContentDirection Direction { ContentDirection get (); void set (ContentDirection value); }
/** @property */ public ContentDirection get_Direction () /** @property */ public void set_Direction (ContentDirection value)
public function get Direction () : ContentDirection public function set Direction (value : ContentDirection)
ContentDirection 値の 1 つ。既定値は NotSet です。

Direction プロパティは、テキストを含むコントロールをパネル コントロールに表示する方向を指定します。
Direction プロパティは、ContentDirection の値の 1 つを使用して設定します。有効値の一覧を次の表に示します。
値 | |
---|---|
NotSet | |
LeftToRight | |
LeftToRight を指定した場合、テキストが含まれる子コントロールが左から右に表示されます。RightToLeft を指定した場合、テキストが含まれる子コントロールが右から左に表示されます。RightToLeft は、アラビア語やヘブライ語など、右から左に記述する言語のテキストを表示する場合に使用します。

Panel1 と Panel2 の 2 つのパネル コントロールの Direction プロパティに、ContentDirection.LeftToRight 列挙値を設定するコード例を次に示します。このコード例は、PanelStyle クラスのトピックで取り上げているコード例の一部分です。
Partial Class PanelStylevb_aspx Inherits Page Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim panelState As StateBag = New StateBag() Dim myPanelStyle As PanelStyle = New PanelStyle(panelState) ' Set the properties of the PanelStyle class. myPanelStyle.HorizontalAlign = HorizontalAlign.Center myPanelStyle.ScrollBars = ScrollBars.Both myPanelStyle.Wrap = False myPanelStyle.Direction = ContentDirection.LeftToRight myPanelStyle.BackImageUrl = "~\images\picture.jpg" ' Use the ApplyStyle method of the Panel control to apply ' the settings from the myPanelStyle object. Panel1.ApplyStyle(myPanelStyle) Panel2.ApplyStyle(myPanelStyle) End Sub End Class
public partial class PanelStylecs_aspx : Page { void Page_Load(object sender, EventArgs e) { StateBag panelState = new StateBag(); PanelStyle myPanelStyle = new PanelStyle(panelState); // Set the properties of the PanelStyle class. myPanelStyle.HorizontalAlign = HorizontalAlign.Center; myPanelStyle.ScrollBars = ScrollBars.Both; myPanelStyle.Wrap = false; myPanelStyle.Direction = ContentDirection.LeftToRight; myPanelStyle.BackImageUrl = @"~\images\picture.jpg"; // Use the ApplyStyle method of the Panel control to apply // the settings from the myPanelStyle object. Panel1.ApplyStyle(myPanelStyle); Panel2.ApplyStyle(myPanelStyle); } }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPanelStyle.Direction プロパティを検索する場合は、下記のリンクをクリックしてください。

- PanelStyle.Direction プロパティのページへのリンク