Skip to content

ActionMenuItem ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A single item in an .

csharp
public record ActionMenuItem : IEquatable<ActionMenuItem>

Inheritance ​

Object → ActionMenuItem

Implements ​

Constructors ​

ActionMenuItem(string, string) ​

A single item in an .

Parameters:

  • Label (String): The display text for this item.
  • Id (String): A unique identifier for this item.
csharp
public ActionMenuItem(string Label, string Id)

Properties ​

Detail ​

Optional detail text shown after the label.

Returns: String

csharp
public string? Detail { get; init; }

Id ​

A unique identifier for this item.

Returns: String

csharp
public string Id { get; init; }

IsPreferred ​

Whether this item is marked as preferred/recommended.

Returns: Boolean

csharp
public bool IsPreferred { get; init; }

Label ​

The display text for this item.

Returns: String

csharp
public string Label { get; init; }

Released under the MIT License.