This documentation is archived and is not being maintained.

ListControl.GetItemText Method

Returns the text representation of the specified item.

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


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.


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