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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.