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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.