ListBox::ToString Method ()


This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a string representation of the ListBox.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

virtual String^ ToString() override

Return Value

Type: System::String^

A string that states the control type, the count of items in the ListBox control, and the Text property of the first item in the ListBox, if the count is not 0.

.NET Framework
Available since 1.1
Return to top