This documentation is archived and is not being maintained.

TableItemStyle.HorizontalAlign Property

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

[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 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.

Requirements

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

See Also

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

Show: