Method GetItemValue
GetItemValue(ListControlItem?)
Retrieves the value of the specified item as a Color object.
public virtual Color? GetItemValue(ListControlItem? item)
Parameters
itemListControlItemThe ListControlItem whose value is to be retrieved. Can be null.
Returns
- Color
A Color object representing the value of the specified item, or null if the item is null or its value is not a Color.
Remarks
This method attempts to cast the value of the provided ListControlItem to a Color. If the cast is unsuccessful, null is returned.