Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ItemPosition Enum

Lists values that specify the position of an individual menu item or all items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum ItemPosition

#Members

Name Description
Start

A menu item or all menu items are placed closer to the left edge (horizontal orientation) or top edge (vertical orientation) of the menu container.

Center

A menu item or all menu items are placed in the center of the menu container.

End

A menu item or all menu items are placed closer to the right edge of the menu container (for horizontal orientation) or bottom edge (for vertical orientation).

#Related API Members

The following properties accept/return ItemPosition values:

#Remarks

Use the DxMenu.ItemsPosition property to align menu items in the menu container. To specify the position of an individual menu item, use the DxMenuItem.Position property.

Razor
<div class="card w-50">
    <DxMenu Title="DevExpress"
            ItemsPosition="ItemPosition.Start">
        <Items>
            <DxMenuItem Text="Products" IconCssClass="oi oi-layers"/>
            <DxMenuItem Text="Support" IconCssClass="oi oi-person" />
            <DxMenuItem Text="Documentation" IconCssClass="oi oi-book" Position="ItemPosition.End"/>
        </Items>
    </DxMenu>
</div>

Menu

See Also