Bewerken

Share via


TableItemStyle.HorizontalAlign Property

Definition

Gets or sets the horizontal alignment of the contents in a cell.

public:
 virtual property System::Web::UI::WebControls::HorizontalAlign HorizontalAlign { System::Web::UI::WebControls::HorizontalAlign get(); void set(System::Web::UI::WebControls::HorizontalAlign value); };
[System.ComponentModel.Bindable(true)]
public virtual System.Web.UI.WebControls.HorizontalAlign HorizontalAlign { get; set; }
public virtual System.Web.UI.WebControls.HorizontalAlign HorizontalAlign { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.HorizontalAlign : System.Web.UI.WebControls.HorizontalAlign with get, set
member this.HorizontalAlign : System.Web.UI.WebControls.HorizontalAlign with get, set
Public Overridable Property HorizontalAlign As HorizontalAlign

Property Value

One of the HorizontalAlign enumeration values. The default is NotSet.

Attributes

Exceptions

The specified horizontal alignment is not one of the HorizontalAlign enumeration values.

Remarks

Use the HorizontalAlign property to specify the horizontal alignment of the data list control within its container. This property is set with one of the HorizontalAlign enumeration values. The following table lists the possible values.

Value Description
NotSet The horizontal alignment is not set.
Left The contents of a cell are left justified within the cell.
Center The contents of a cell are centered within the cell.
Right The contents of a cell are right justified within the cell.

The value of this property is stored in view state.

Applies to

See also