PanelStyle.Direction Property

Gets or sets the direction in which to display controls that include text in a panel control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

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)

Not applicable.

Property Value

One of the ContentDirection values. The default is NotSet.

Exception typeCondition

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.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: