Table of Contents

Method GetItemText

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

GetItemText(object?)

Converts the specified item to its string representation.

public virtual string GetItemText(object? item)

Parameters

item object

The object to convert. Can be null.

Returns

string

A string representation of the specified item. Returns an empty string if item is null. If the item is a string, it is returned as-is. If the item implements IFormattable, its formatted string representation is returned using the current culture. Otherwise, the result of ToString() is returned.