TCnListControl.GetItemText(Olevariant) Method

Returns the text representation of the specified item.

Namespace: CNClrLib.Control.ListControl
 function GetItemText(Item: Olevariant): String;


Type: Olevariant

The object from which to get the contents to display.

Return Value

Type: String

If the DisplayMember property is not specified, the value returned by GetItemTextGetItemText(OleVariant) is the value of the item's ToString method. Otherwise, the method returns the string value of the member specified in the DisplayMember property for the object specified in the item parameter.