ComboItemLook record struct Core
How one value of a ComboBox reads, in the closed box and in its list: a round badge with initials before it and a dim secondary text after it - a customer's number beside the name, a country's code beside the country.
public readonly record struct ComboItemLook
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Constructors
ComboItemLook
public ComboItemLook(string? Secondary = null, string? Initials = null);How one value of a ComboBox reads, in the closed box and in its list: a round badge with initials before it and a dim secondary text after it - a customer's number beside the name, a country's code beside the country.
Parameters
SecondaryThe dim text after the value; null for none.
InitialsUp to two letters in a round badge before the value; null for none.
Properties
Initials
public string? Initials { get; init; }Up to two letters in a round badge before the value; null for none.
Secondary
public string? Secondary { get; init; }The dim text after the value; null for none.
Methods
InitialsOf
public static string InitialsOf(string name);The initials of a name: the first letters of its first two words, in capitals ("Helios Energy" gives "HE", "Becker & Co" gives "BC").