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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.