Method GetItemText
GetItemText(int, bool)
Returns the text representation of item with the specified index.
string GetItemText(int index, bool forDisplay)
Parameters
indexintItem index from which to get the contents to display.
forDisplayboolThe flag which specifies whether to get text for display purposes or the real value.
Returns
GetItemText(ListControlItem?, bool)
Returns the text representation of the specified list control item.
string GetItemText(ListControlItem? item, bool forDisplay)
Parameters
itemListControlItemThe list control item to retrieve the text for. If null, the method returns an empty string.
forDisplaybooltrue to format the text for display purposes; otherwise, false to return the raw value.
Returns
- string
A string containing the text of the item. Returns an empty string if item is null.