Edit

Share via


TableStyle.HorizontalAlign Property

Definition

Gets or sets the horizontal alignment of the table within its container.

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 table is left justified within its container.
Center The table is centered within its container.
Right The table is right justified within its container.

The value of this property is stored in view state.

Applies to

See also