Skip to content

ActionMenu

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A popup menu of selectable actions displayed at a document position. Used for code actions, quick fixes, and rename operations.

csharp
public record ActionMenu : IEquatable<ActionMenu>

Inheritance

ObjectActionMenu

Implements

Constructors

ActionMenu(DocumentPosition, IReadOnlyList<ActionMenuItem>)

A popup menu of selectable actions displayed at a document position. Used for code actions, quick fixes, and rename operations.

Parameters:

csharp
public ActionMenu(DocumentPosition Anchor, IReadOnlyList<ActionMenuItem> Items)

Properties

Anchor

The document position to anchor the menu near.

Returns: DocumentPosition

csharp
public DocumentPosition Anchor { get; init; }

Items

The selectable menu items.

Returns: IReadOnlyList<ActionMenuItem>

csharp
public IReadOnlyList<ActionMenuItem> Items { get; init; }

Title

Optional title displayed at the top of the menu.

Returns: String

csharp
public string? Title { get; init; }

Released under the MIT License.