
866
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
ListControl.SelectedItem, ListItemCollection.{FindByText( ), FindByValue( ), this}
Passed To
ListItemCollection.{Add( ), AddRange( ), Contains( ), IndexOf( ), Insert( ), Remove( )}
ListItemCollection
System.Web.UI.WebControls (system.web.dll)
sealed class
This class contains a collection of ListItem objects, which represents the items in a list
control. This collection is used by the ListControl.Items property.
public sealed class ListItem : System.Web.UI.IStateManager, System.Web.UI.IParserAccessor,
System.Web.UI.IAttributeAccessor {
// Public Constructors
public ListItem();
public ListItem( string text);
public ListItem( string text, string value);
// Public Instance Properties
public AttributeCollection Attributes{get; }
public bool Selected{set; get; }
public string Text{set; get; }
public string Value{set; get; }
// Public Static Methods
public static ListItem FromString( string s);
// Public Instance Methods
public override bool Equals( object o); // overrides object
public override int GetHashCode(); // overrides object
public override string ToString(); // overrides object
}
public sealed class ListItemCollection : IList, ICollection, IEnumerable, System.Web.UI.IStateManager {
// Public Constructors
public ListItemCollection ...