Share via


PublishingMenu.MenuAlignment property

Gets or sets the MenuAlignment for the menus contained within this PublishingMenu. Alignment can be Left, Right, or Default.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property MenuAlignment As MenuAlignment
    Get
    Set
'Usage
Dim instance As PublishingMenu
Dim value As MenuAlignment

value = instance.MenuAlignment

instance.MenuAlignment = value
public MenuAlignment MenuAlignment { get; set; }

Property value

Type: Microsoft.SharePoint.WebControls.MenuAlignment

Remarks

The PublishingMenu is rendered as a set of Microsoft SharePoint Foundation menu controls. Each of these menus is rendered with the MenuAlignment specified by this property.

See also

Reference

PublishingMenu class

PublishingMenu members

Microsoft.SharePoint.Publishing.WebControls namespace

PublishingMenu