Table of Contents

Method GetItemValue

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetItemValue(ListControlItem?)

Retrieves the value of the specified item as a Color object.

public virtual Color? GetItemValue(ListControlItem? item)

Parameters

item ListControlItem

The 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.