System.Web.UI.WebControls.DetailsView.HorizontalAlign Property

Gets or sets the horizontal alignment of a System.Web.UI.WebControls.DetailsView control on the page.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.HorizontalAlign.NotSet)]
[System.ComponentModel.Category("Layout")]
public virtual HorizontalAlign HorizontalAlign { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the DetailsView.HorizontalAlign property to specify the horizontal alignment of a System.Web.UI.WebControls.DetailsView control within the page. The following table lists the different horizontal alignment styles.

HorizontalAlign.NotSet

The horizontal alignment of the System.Web.UI.WebControls.DetailsView control has not been set.

HorizontalAlign.Left

The System.Web.UI.WebControls.DetailsView control is left-aligned on the page.

HorizontalAlign.Center

The System.Web.UI.WebControls.DetailsView control is centered on the page.

HorizontalAlign.Right

The System.Web.UI.WebControls.DetailsView control is right-aligned on the page.

HorizontalAlign.Justify

The System.Web.UI.WebControls.DetailsView control is aligned with both the left and right margins of the page.

Requirements

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