1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887
|
<?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>
|