Table of Contents

Method PrependSeparator

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

PrependSeparator()

Inserts a separator item at the beginning of the menu item collection.

public virtual MenuItem PrependSeparator()

Returns

MenuItem

A MenuItem representing the inserted separator.

Remarks

Use this method to visually separate groups of menu items at the start of the menu. The separator is typically rendered as a horizontal line in most user interfaces.