Export (0) Print
Expand All

ListControl.GetItemText Method

Returns the text representation of the specified item.

[Visual Basic]
Public Function GetItemText( _
   ByVal item As Object _
) As String
[C#]
public string GetItemText(
 object item
);
[C++]
public: String* GetItemText(
 Object* item
);
[JScript]
public function GetItemText(
   item : Object
) : String;

Parameters

item
The object from which to get the contents to display.

Return Value

If the DisplayMember property is not specified, the value returned by GetItemText 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ListControl Class | ListControl Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft