This documentation is archived and is not being maintained.

WebPartMenuStyle.HorizontalAlign Property

Note: This property is new in the .NET Framework version 2.0.

Gets a value indicating what type of horizontal alignment to use for the content of a menu on a WebPart control.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public override HorizontalAlign HorizontalAlign { get; set; }
/** @property */
public HorizontalAlign get_HorizontalAlign ()

/** @property */
public void set_HorizontalAlign (HorizontalAlign value)

public override function get HorizontalAlign () : HorizontalAlign

public override function set HorizontalAlign (value : HorizontalAlign)

Property Value

A HorizontalAlign enumeration value that specifies what type of alignment to use. The default value is obtained from the base TableStyle.HorizontalAlign property value.

The HorizontalAlign property overrides the base property to prevent the alignment from being set, and to add some attributes to the property. The property gets its value from the base TableStyle.HorizontalAlign property value, but does not provide any implementation for the setter, so you cannot set the alignment of the menu content by using this property.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0