This documentation is archived and is not being maintained.

TableStyle.HorizontalAlign Property

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

[Visual Basic]
Public Overridable Property HorizontalAlign As HorizontalAlign
[C#]
public virtual HorizontalAlign HorizontalAlign {get; set;}
[C++]
public: __property virtual HorizontalAlign get_HorizontalAlign();
public: __property virtual void set_HorizontalAlign(HorizontalAlign);
[JScript]
public function get HorizontalAlign() : HorizontalAlign;
public function set HorizontalAlign(HorizontalAlign);

Property Value

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

Exceptions

Exception Type Condition
ArgumentException 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.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

TableStyle Class | TableStyle Members | System.Web.UI.WebControls Namespace | HorizontalAlign

Show: