Table of Contents

Delegate DropdownControl.ItemFormatterEvent

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Delegate for custom item formatting in the dropdown list.

public delegate string DropdownControl.ItemFormatterEvent(DropdownItem item, bool isSelected, bool hasFocus)

Parameters

item DropdownItem

The dropdown item to format.

isSelected bool

Whether the item is currently selected.

hasFocus bool

Whether the dropdown control has focus.

Returns

string

The formatted string representation of the item.