WebPartMenuStyle.HorizontalAlign Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Value

Type: System.Web.UI.WebControls.HorizontalAlign

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.

.NET Framework
Available since 2.0
Return to top