ListItem.FromString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a ListItem from the specified text.
public:
static System::Web::UI::WebControls::ListItem ^ FromString(System::String ^ s);
public static System.Web.UI.WebControls.ListItem FromString (string s);
static member FromString : string -> System.Web.UI.WebControls.ListItem
Public Shared Function FromString (s As String) As ListItem
Parameters
Returns
A ListItem that represents the text specified by the s
parameter.
Remarks
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.
Applies to
See also
- Text
- ListControl
- RadioButtonList
- ListBox
- DropDownList
- CheckBoxList
- ListBox Web Server Control Overview
- RadioButton and RadioButtonList Web Server Controls Overview
- CheckBox and CheckBoxList Web Server Controls Overview
- BulletedList Web Server Control Overview
- DropDownList Web Server Control Overview
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.