a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
887 lines
42 KiB
XML
887 lines
42 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<Type Name="ListItem" FullName="System.Web.UI.WebControls.ListItem">
|
||
<TypeSignature Language="C#" Maintainer="auto" Value="public sealed class ListItem : System.Web.UI.IAttributeAccessor, System.Web.UI.IParserAccessor, System.Web.UI.IStateManager" />
|
||
<AssemblyInfo>
|
||
<AssemblyName>System.Web</AssemblyName>
|
||
<AssemblyPublicKey>
|
||
</AssemblyPublicKey>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||
<Base>
|
||
<BaseTypeName>System.Object</BaseTypeName>
|
||
</Base>
|
||
<Interfaces>
|
||
<Interface>
|
||
<InterfaceName>System.Web.UI.IAttributeAccessor</InterfaceName>
|
||
</Interface>
|
||
<Interface>
|
||
<InterfaceName>System.Web.UI.IParserAccessor</InterfaceName>
|
||
</Interface>
|
||
<Interface>
|
||
<InterfaceName>System.Web.UI.IStateManager</InterfaceName>
|
||
</Interface>
|
||
</Interfaces>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.ControlBuilder(typeof(System.Web.UI.WebControls.ListItemControlBuilder))</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>A <see cref="T:System.Web.UI.WebControls.ListItem" /> control represents an individual data item within a data-bound list control, such as a <see cref="T:System.Web.UI.WebControls.ListBox" /> or a <see cref="T:System.Web.UI.WebControls.RadioButtonList" /> control.</para>
|
||
<para>There are several ways to specify the text displayed for an item in the list control. The most common method is by placing text in the inner HTML content. The inner HTML content is the text between the opening and closing tags of the <see cref="T:System.Web.UI.WebControls.ListItem" /> control. You can also use the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property to specify the text displayed in the list control for the item.</para>
|
||
<para>The <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property allows you to associate a value with the item in the list control, in addition to the text displayed in the control. For example, you can display text for an item in the list control, such as "Item 1", and use the <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property to specify a value for that item, such as "$1.99".</para>
|
||
<para>You can have any combination of the inner HTML content, <see cref="P:System.Web.UI.WebControls.ListItem.Text" />, or <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> properties set. The resulting HTML output for the <see cref="T:System.Web.UI.WebControls.ListItem" /> control depends on the combination of these three properties that are set. For example, if all three properties are set as follows: </para>
|
||
<code><asp:ListItem Value="Value 1" Text="Item 1">Inner 1</asp:ListItem></code>
|
||
<para>The inner HTML content is used for rendered inner HTML content and the <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property is used for the Value attribute. The resulting HTML rendering output is: </para>
|
||
<code><option value="Value 1">Inner 1</option></code>
|
||
<para>The following table lists the combination of set properties and the corresponding property used for the rendered inner HTML content and Value attribute. The three columns on the left list the combination of set properties. The two columns on the right list which property value is used for the corresponding attribute.</para>
|
||
<list type="table">
|
||
<listheader>
|
||
<item>
|
||
<term>
|
||
<para>Inner HTML content </para>
|
||
</term>
|
||
<description>
|
||
<para>Text property </para>
|
||
</description>
|
||
<description>
|
||
<para>Value property </para>
|
||
</description>
|
||
<description>
|
||
<para>Rendered Inner HTML content </para>
|
||
</description>
|
||
<description>
|
||
<para>Rendered Value attribute </para>
|
||
</description>
|
||
</item>
|
||
</listheader>
|
||
<item>
|
||
<term>
|
||
<para>Set </para>
|
||
</term>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Inner HTML content </para>
|
||
</description>
|
||
<description>
|
||
<para>Value property </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Set </para>
|
||
</term>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Inner HTML content </para>
|
||
</description>
|
||
<description>
|
||
<para>Inner HTML content </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Set </para>
|
||
</term>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Inner HTML content </para>
|
||
</description>
|
||
<description>
|
||
<para>Value property </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Set </para>
|
||
</term>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Inner HTML content </para>
|
||
</description>
|
||
<description>
|
||
<para>Inner HTML text </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Not set </para>
|
||
</term>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Text property </para>
|
||
</description>
|
||
<description>
|
||
<para>Value property </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Not set </para>
|
||
</term>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Text property </para>
|
||
</description>
|
||
<description>
|
||
<para>Text property </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Not set </para>
|
||
</term>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Set </para>
|
||
</description>
|
||
<description>
|
||
<para>Value property </para>
|
||
</description>
|
||
<description>
|
||
<para>Value property </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Not set </para>
|
||
</term>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
<description>
|
||
<para>Not set </para>
|
||
</description>
|
||
</item>
|
||
</list>
|
||
<block subset="none" type="note">
|
||
<para>Because the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> and <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> properties each have a default value of an empty string, it is possible to have empty list items in the list control.</para>
|
||
</block>
|
||
<para>When a list control is displayed, any <see cref="T:System.Web.UI.WebControls.ListItem" /> control with its <see cref="P:System.Web.UI.WebControls.ListItem.Selected" /> property set to true appears highlighted in the control.</para>
|
||
<para>The <see cref="T:System.Web.UI.WebControls.ListItem" /> control provides the <see cref="P:System.Web.UI.WebControls.ListItem.Enabled" /> property to allow you to specify whether a <see cref="T:System.Web.UI.WebControls.ListItem" /> control is enabled or disabled. A <see cref="T:System.Web.UI.WebControls.ListItem" /> control that is disabled is dimmed to indicate that it cannot be selected. Use this property to disable a <see cref="T:System.Web.UI.WebControls.ListItem" /> control in either a <see cref="T:System.Web.UI.WebControls.RadioButtonList" /> control or a <see cref="T:System.Web.UI.WebControls.CheckBoxList" /> control.</para>
|
||
<block subset="none" type="note">
|
||
<para>You cannot use this property to disable a <see cref="T:System.Web.UI.WebControls.ListItem" /> control in a <see cref="T:System.Web.UI.WebControls.DropDownList" /> control or <see cref="T:System.Web.UI.WebControls.ListBox" /> control.</para>
|
||
</block>
|
||
<para>For a list of initial property values for an instance of <see cref="T:System.Web.UI.WebControls.ListItem" />, see the <see cref="M:System.Web.UI.WebControls.ListItem.#ctor" /> constructor.</para>
|
||
<block subset="none" type="note">
|
||
<para>This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. You can use validation controls to verify user input before displaying the input text in a control. ASP.NET provides an input request validation feature to block script and HTML in user input. For more information, see <format type="text/html"><a href="f3e7718f-63d0-44a3-bd5f-48cc2059c2a8">Securing Standard Controls</a></format>, <format type="text/html"><a href="6f67973f-dda0-45a1-ba9d-e88532d7dc5b">How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings</a></format>, and <format type="text/html"><a href="4ad3dacb-89e0-4cee-89ac-40a3f2a85461">Introduction to Validating User Input in ASP.NET Web Pages</a></format>.</para>
|
||
</block>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Represents a data item in a data-bound list control. This class cannot be inherited.</para>
|
||
</summary>
|
||
</Docs>
|
||
<Members>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public ListItem ();" />
|
||
<MemberType>Constructor</MemberType>
|
||
<ReturnValue />
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use this constructor to create and initialize a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class using default values.</para>
|
||
<para>The following table shows initial property values for an instance of <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
<list type="table">
|
||
<listheader>
|
||
<item>
|
||
<term>
|
||
<para>Property </para>
|
||
</term>
|
||
<description>
|
||
<para>Initial Value </para>
|
||
</description>
|
||
</item>
|
||
</listheader>
|
||
<item>
|
||
<term>
|
||
<para>Text </para>
|
||
</term>
|
||
<description>
|
||
<para>null </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Value </para>
|
||
</term>
|
||
<description>
|
||
<para>null </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Enabled</para>
|
||
</term>
|
||
<description>
|
||
<para>true</para>
|
||
</description>
|
||
</item>
|
||
</list>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public ListItem (string text);" />
|
||
<MemberType>Constructor</MemberType>
|
||
<ReturnValue />
|
||
<Parameters>
|
||
<Parameter Name="text" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use this constructor to create and initialize a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class using the specified text.</para>
|
||
<para>The following table shows initial property values for an instance of <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
<list type="table">
|
||
<listheader>
|
||
<item>
|
||
<term>
|
||
<para>Property </para>
|
||
</term>
|
||
<description>
|
||
<para>Initial Value </para>
|
||
</description>
|
||
</item>
|
||
</listheader>
|
||
<item>
|
||
<term>
|
||
<para>Text </para>
|
||
</term>
|
||
<description>
|
||
<para>The value of the <paramref name="text" /> parameter. </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Value </para>
|
||
</term>
|
||
<description>
|
||
<para>null </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Enabled</para>
|
||
</term>
|
||
<description>
|
||
<para>true</para>
|
||
</description>
|
||
</item>
|
||
</list>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class with the specified text data.</para>
|
||
</summary>
|
||
<param name="text">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The text to display in the list control for the item represented by the <see cref="T:System.Web.UI.WebControls.ListItem" />. </param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public ListItem (string text, string value);" />
|
||
<MemberType>Constructor</MemberType>
|
||
<ReturnValue />
|
||
<Parameters>
|
||
<Parameter Name="text" Type="System.String" />
|
||
<Parameter Name="value" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use this constructor to create and initialize a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class using the specified text and value.</para>
|
||
<para>The following table shows initial property values for an instance of <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
<list type="table">
|
||
<listheader>
|
||
<item>
|
||
<term>
|
||
<para>Property </para>
|
||
</term>
|
||
<description>
|
||
<para>Initial Value </para>
|
||
</description>
|
||
</item>
|
||
</listheader>
|
||
<item>
|
||
<term>
|
||
<para>Text </para>
|
||
</term>
|
||
<description>
|
||
<para>The value of the <paramref name="text" /> parameter. </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Value </para>
|
||
</term>
|
||
<description>
|
||
<para>The value of the <paramref name="value" /> parameter. </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Enabled</para>
|
||
</term>
|
||
<description>
|
||
<para>true</para>
|
||
</description>
|
||
</item>
|
||
</list>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class with the specified text and value data.</para>
|
||
</summary>
|
||
<param name="text">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The text to display in the list control for the item represented by the <see cref="T:System.Web.UI.WebControls.ListItem" />. </param>
|
||
<param name="value">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The value associated with the <see cref="T:System.Web.UI.WebControls.ListItem" />. </param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public ListItem (string text, string value, bool enabled);" />
|
||
<MemberType>Constructor</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Parameters>
|
||
<Parameter Name="text" Type="System.String" />
|
||
<Parameter Name="value" Type="System.String" />
|
||
<Parameter Name="enabled" Type="System.Boolean" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The following table shows initial property values for an instance of <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
<list type="table">
|
||
<listheader>
|
||
<item>
|
||
<term>
|
||
<para>Property </para>
|
||
</term>
|
||
<description>
|
||
<para>Initial Value </para>
|
||
</description>
|
||
</item>
|
||
</listheader>
|
||
<item>
|
||
<term>
|
||
<para>Text </para>
|
||
</term>
|
||
<description>
|
||
<para>The value of the <paramref name="text" /> parameter. </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Value </para>
|
||
</term>
|
||
<description>
|
||
<para>The value of the <paramref name="value" /> parameter. </para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>Enabled</para>
|
||
</term>
|
||
<description>
|
||
<para>The value of the <paramref name="enabled" /> parameter.</para>
|
||
</description>
|
||
</item>
|
||
</list>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ListItem" /> class with the specified text, value, and enabled data.</para>
|
||
</summary>
|
||
<param name="text">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The text to display in the list control for the item represented by the <see cref="T:System.Web.UI.WebControls.ListItem" />.</param>
|
||
<param name="value">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The value associated with the <see cref="T:System.Web.UI.WebControls.ListItem" />.</param>
|
||
<param name="enabled">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />Indicates whether the <see cref="T:System.Web.UI.WebControls.ListItem" /> is enabled.</param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Attributes">
|
||
<MemberSignature Language="C#" Value="public System.Web.UI.AttributeCollection Attributes { get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Web.UI.AttributeCollection</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>a <see cref="T:System.Web.UI.AttributeCollection" /></value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.ListItem.Attributes" /> collection to manage the attribute name and value pairs declared in the opening and closing tags of the <see cref="T:System.Web.UI.WebControls.ListItem" />, but not directly supported by the class. You can programmatically add or remove attributes to the collection.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets a collection of attribute name and value pairs for the <see cref="T:System.Web.UI.WebControls.ListItem" /> that are not directly supported by the class.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="Enabled">
|
||
<MemberSignature Language="C#" Value="public bool Enabled { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Boolean</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<value>To be added.</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="P:System.Web.UI.WebControls.ListItem.Enabled" /> property allows you to specify whether a <see cref="T:System.Web.UI.WebControls.ListItem" /> control is enabled or disabled. A <see cref="T:System.Web.UI.WebControls.ListItem" /> control that is disabled is dimmed to indicate that it cannot be selected. Use this property to disable a <see cref="T:System.Web.UI.WebControls.ListItem" /> control in either a <see cref="T:System.Web.UI.WebControls.RadioButtonList" /> control or a <see cref="T:System.Web.UI.WebControls.CheckBoxList" /> control.</para>
|
||
<block subset="none" type="note">
|
||
<para>You cannot use this property to disable a <see cref="T:System.Web.UI.WebControls.ListItem" /> control in a <see cref="T:System.Web.UI.WebControls.DropDownList" /> control or <see cref="T:System.Web.UI.WebControls.ListBox" /> control.</para>
|
||
</block>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets a value indicating whether the list item is enabled.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Equals">
|
||
<MemberSignature Language="C#" Value="public override bool Equals (object o);" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Boolean</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="o" Type="System.Object" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>To be added</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Determines whether the specified object has the same value and text as the current list item.</para>
|
||
</summary>
|
||
<returns>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>true if the specified object is equivalent to the current list item; otherwise, false.</para>
|
||
</returns>
|
||
<param name="o">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The object to compare with the current list item.</param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="FromString">
|
||
<MemberSignature Language="C#" Value="public static System.Web.UI.WebControls.ListItem FromString (string text);" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Web.UI.WebControls.ListItem</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="text" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<param name="text">a <see cref="T:System.String" /></param>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="M:System.Web.UI.WebControls.ListItem.FromString(System.String)" /> static method to create a <see cref="T:System.Web.UI.WebControls.ListItem" /> from the specified text. This method sets the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property of the <see cref="T:System.Web.UI.WebControls.ListItem" /> to the text specified by the <paramref name="s" /> parameter.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Creates a <see cref="T:System.Web.UI.WebControls.ListItem" /> from the specified text.</para>
|
||
</summary>
|
||
<returns>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>A <see cref="T:System.Web.UI.WebControls.ListItem" /> that represents the text specified by the <paramref name="s" /> parameter.</para>
|
||
</returns>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="GetHashCode">
|
||
<MemberSignature Language="C#" Value="public override int GetHashCode ();" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Int32</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<returns>a <see cref="T:System.Int32" /></returns>
|
||
<remarks>To be added</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Serves as a hash function for a particular type, and is suitable for use in hashing algorithms and data structures like a hash table.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="Selected">
|
||
<MemberSignature Language="C#" Value="public bool Selected { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Boolean</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'bool'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.ListItem.Selected" /> property to determine whether the <see cref="T:System.Web.UI.WebControls.ListItem" /> is currently selected in the list control that contains it. This property is commonly used, when iterating through a collection of <see cref="T:System.Web.UI.WebControls.ListItem" /> objects in a list control, to determine whether an item is selected.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets a value indicating whether the item is selected.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue(false)</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IAttributeAccessor.GetAttribute">
|
||
<MemberSignature Language="C#" Value="string IAttributeAccessor.GetAttribute (string key);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="key" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<param name="key">To be added.</param>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Web.UI.WebControls.ListItem" /> instance is cast to an <see cref="T:System.Web.UI.IAttributeAccessor" /> interface.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Returns the attribute value of the list item control having the specified attribute name.</para>
|
||
</summary>
|
||
<returns>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The value of the specified attribute.</para>
|
||
</returns>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IAttributeAccessor.SetAttribute">
|
||
<MemberSignature Language="C#" Value="void IAttributeAccessor.SetAttribute (string key, string value);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="key" Type="System.String" />
|
||
<Parameter Name="value" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<param name="key">To be added.</param>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Web.UI.WebControls.ListItem" /> instance is cast to an <see cref="T:System.Web.UI.IAttributeAccessor" /> interface.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Sets an attribute of the list item control with the specified name and value.</para>
|
||
</summary>
|
||
<param name="value">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The value component of the attribute's name/value pair. </param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IParserAccessor.AddParsedSubObject">
|
||
<MemberSignature Language="C#" Value="void IParserAccessor.AddParsedSubObject (object obj);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="obj" Type="System.Object" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Web.UI.WebControls.ListItem" /> instance is cast to an <see cref="T:System.Web.UI.IParserAccessor" /> interface.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Allows the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property to be persisted as inner content.</para>
|
||
</summary>
|
||
<param name="obj">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The specified object that is parsed. </param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IStateManager.IsTrackingViewState">
|
||
<MemberSignature Language="C#" Value="bool System.Web.UI.IStateManager.IsTrackingViewState { get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Boolean</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<value>To be added.</value>
|
||
<remarks>To be added.</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>For a description of this member, see <see cref="P:System.Web.UI.IStateManager.IsTrackingViewState" />.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IStateManager.LoadViewState">
|
||
<MemberSignature Language="C#" Value="void IStateManager.LoadViewState (object state);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="state" Type="System.Object" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Web.UI.WebControls.ListItem" /> instance is cast to an <see cref="T:System.Web.UI.IStateManager" /> interface.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>For a description of this member, see <see cref="M:System.Web.UI.IStateManager.LoadViewState(System.Object)" />.</para>
|
||
</summary>
|
||
<param name="state">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Object" /> that contains the saved view state values for the control. </param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IStateManager.SaveViewState">
|
||
<MemberSignature Language="C#" Value="object IStateManager.SaveViewState ();" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Object</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Web.UI.WebControls.ListItem" /> instance is cast to an <see cref="T:System.Web.UI.IStateManager" /> interface.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>For a description of this member, see <see cref="M:System.Web.UI.IStateManager.SaveViewState" />.</para>
|
||
</summary>
|
||
<returns>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="T:System.Object" /> that contains the view state changes.</para>
|
||
</returns>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IStateManager.TrackViewState">
|
||
<MemberSignature Language="C#" Value="void IStateManager.TrackViewState ();" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Web.UI.WebControls.ListItem" /> instance is cast to an <see cref="T:System.Web.UI.IStateManager" /> interface.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>For a description of this member, see <see cref="M:System.Web.UI.IStateManager.TrackViewState" />.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Text">
|
||
<MemberSignature Language="C#" Value="public string Text { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'string'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property to specify or determine the text displayed in a list control for the item represented by the <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
<block subset="none" type="note">
|
||
<para>If the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property contains null, the get accessor returns the value of the <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property. If the <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property, in turn, contains null, <see cref="F:System.String.Empty" /> is returned.</para>
|
||
</block>
|
||
<para>The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <see cref="T:System.ComponentModel.LocalizableAttribute" /> and <format type="text/html"><a href="8ef3838e-9d05-4236-9dd0-ceecff9df80d">ASP.NET Globalization and Localization</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the text displayed in a list control for the item represented by the <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.EncodedInnerDefaultProperty)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="ToString">
|
||
<MemberSignature Language="C#" Value="public override string ToString ();" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<summary>To be added</summary>
|
||
<returns>a <see cref="T:System.String" /></returns>
|
||
<remarks>To be added</remarks>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="Value">
|
||
<MemberSignature Language="C#" Value="public string Value { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'string'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property to specify or determine the value associated with the <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
<block subset="none" type="note">
|
||
<para>If the <see cref="P:System.Web.UI.WebControls.ListItem.Value" /> property contains null, the get accessor returns the value of the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property. If the <see cref="P:System.Web.UI.WebControls.ListItem.Text" /> property, in turn, contains null, <see cref="F:System.String.Empty" /> is returned.</para>
|
||
</block>
|
||
<para>The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <see cref="T:System.ComponentModel.LocalizableAttribute" /> and <format type="text/html"><a href="8ef3838e-9d05-4236-9dd0-ceecff9df80d">ASP.NET Globalization and Localization</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the value associated with the <see cref="T:System.Web.UI.WebControls.ListItem" />.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
</Members>
|
||
</Type> |