PanelStyle::Direction Property
Gets or sets the direction in which to display controls that include text in a panel control.
Assembly: System.Web (in System.Web.dll)
public: virtual property ContentDirection Direction { ContentDirection get (); void set (ContentDirection value); }
Property Value
Type: System.Web.UI.WebControls::ContentDirectionOne of the ContentDirection values. The default is NotSet.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The direction is not one of the ContentDirection values. |
The Direction property specifies the direction in which to display controls that include text in a panel control.
The Direction property is set using one of the ContentDirection values. The following table lists the possible values.
Value | Description |
|---|---|
NotSet | The content direction is not set. |
LeftToRight | Child controls that include text are displayed from left to right. |
RightToLeft | Child controls that include text are displayed from right to left. |
If you specify LeftToRight, child controls that include text display from left to right. If you specify RightToLeft, child controls that include text display right to left. Use RightToLeft to display text for languages that are written from right to left, such as Arabic or Hebrew.
The following code example sets the Direction properties of two panel controls, Panel1 and Panel2, to the ContentDirection.LeftToRight enumeration value. This code example is part of a larger example provided for the PanelStyle class.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.