System.Web.UI.WebControls Namespace ListItem Class
Creates a ListItem from the specified string.
[ VB ]
Public Shared Function FromString ( _
ByVal s As String _
) As ListItem
[ C# ]
public static ListItem FromString (
string s
);
[ C++ ]
public: static ListItem* FromString (
String* s
);
[ JScript ]
public static function FromString (
s : String
) : ListItem;
- s
- The specified string for creating a ListItem.
A ListItem that represents the text specified by the s parameter.
Use the FromString static method to create a ListItem from the specified text. This method sets the Text property of the ListItem to the text specified by the s parameter.
ListItem Members