System.Web.UI.WebControls.ContentDirection Enumeration

Represents the direction in which to display controls that include text in a container control.

Syntax

public enum ContentDirection

Remarks

The System.Web.UI.WebControls.ContentDirection enumeration represents the direction in which to display controls that include text in a container control. Controls, such as the System.Web.UI.WebControls.Panel and System.Web.UI.WebControls.WebParts.WebPart controls, have properties that use the System.Web.UI.WebControls.ContentDirection enumeration values to specify the direction in which to display child controls that include text.

If you specify the ContentDirection.LeftToRight value, child controls that include text display text from left to right and justify the text on the left side of the container control. If you specify the ContentDirection.RightToLeft value, child controls that include text display text from right to left and justify the text on the right side of the container control. Use the ContentDirection.RightToLeft value to display text for languages that are written from right to left, such as Arabic and Hebrew.

Members

Member NameDescription
LeftToRight

Left to right.

NotSet

Not set.

RightToLeft

Right to left.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0