24 instantiations of ListItem
System.Web (19)
UI\HtmlControls\HtmlSelect.cs (1)
649ListItem item = new ListItem();
UI\WebControls\ListControl.cs (1)
703ListItem item = new ListItem();
UI\WebControls\listitem.cs (1)
236return new ListItem(s);
UI\WebControls\ListItemCollection.cs (5)
85Add(new ListItem(item)); 224Insert(index,new ListItem(item)); 285int index = IndexOf(new ListItem(item)); 349ListItem li = new ListItem(); 367Add(new ListItem(texts[i], values[i], enabled[i]));
UI\WebParts\CatalogZoneBase.cs (1)
661ListItem item = new ListItem(zone.DisplayTitle, zone.ID);
UI\WebParts\ConnectionsZone.cs (4)
2143list.Items.Add(new ListItem()); 2165ListItem item = new ListItem(); 2198list.Items.Add(new ListItem()); 2220ListItem item = new ListItem();
UI\WebParts\LayoutEditorPart.cs (1)
165ListItem item = new ListItem(zone.DisplayTitle, zone.ID);
UI\WebParts\PropertyGridEditorPart.cs (1)
202dropDownList.Items.Add(new ListItem(text));
UI\WebParts\RowToFieldTransformer.cs (1)
127ListItem item = new ListItem(OldProviderNames[2*i], OldProviderNames[2*i + 1]);
UI\WebParts\RowToParametersTransformer.cs (3)
246consumerItems[i] = new ListItem(OldConsumerNames[2*i], OldConsumerNames[2*i + 1]); 269consumerFieldName.Items.Add(new ListItem()); 291ListItem item = new ListItem(consumerItem.Text, consumerItem.Value);
System.Web.DynamicData (5)
DynamicData\FieldTemplateUserControl.cs (1)
319list.Items.Add(new ListItem((string)entry.Key, (string)entry.Value));
DynamicData\FilterUserControlBase.cs (2)
326listControl.Items.Add(new ListItem(DynamicDataResources.FilterUserControlBase_BooleanFilter_TrueString, bool.TrueString)); 327listControl.Items.Add(new ListItem(DynamicDataResources.FilterUserControlBase_BooleanFilter_FalseString, bool.FalseString));
DynamicData\QueryableFilterUserControl.cs (1)
58list.Items.Add(new ListItem((string)entry.Key, (string)entry.Value));
DynamicData\Util\Misc.cs (1)
261listItemCollection.Add(new ListItem(text, value.TrimEnd()));
72 references to ListItem
System.Web (72)
UI\HtmlControls\HtmlSelect.cs (5)
28return typeof(ListItem); 488if (obj is ListItem) 489Items.Add((ListItem)obj); 649ListItem item = new ListItem(); 832ListItem li = liCollection[i];
UI\WebControls\BaseValidator.cs (2)
525if (value is ListItem) { 526return((ListItem) value).Value;
UI\WebControls\BulletedList.cs (2)
203public override ListItem SelectedItem { 387protected virtual void RenderBulletText(ListItem item, int index, HtmlTextWriter writer) {
UI\WebControls\CheckBoxList.cs (2)
368ListItem item = Items[index]; 530ListItem item = Items[repeatIndexOffset];
UI\WebControls\ListControl.cs (6)
255foreach (ListItem item in Items) { 361public virtual ListItem SelectedItem{ 396ListItem selectItem = Items.FindByValue(value); 548/// <see cref='System.Web.UI.WebControls.ListItem.Selected'/> property 703ListItem item = new ListItem(); 780ListItem li = liCollection[i];
UI\WebControls\listitem.cs (10)
17/// <para>Interacts with the parser to build a <see cref='System.Web.UI.WebControls.ListItem'/> control.</para> 62/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.ListItem'/> class.</para> 69/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.ListItem'/> class with the specified text data.</para> 76/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.ListItem'/> class with the specified text data.</para> 83/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.ListItem'/> class with the 223ListItem other = o as ListItem; 233/// <para>Creates a <see cref='System.Web.UI.WebControls.ListItem'/> from the specified string.</para> 235public static ListItem FromString(string s) { 362/// <para> Allows the <see cref='System.Web.UI.WebControls.ListItem.Text'/>
UI\WebControls\ListItemCollection.cs (31)
40/// <para>Gets a <see cref='System.Web.UI.WebControls.ListItem'/> referenced by the specified ordinal 43public ListItem this[int index] { 45return (ListItem)listItems[index]; 56listItems[index] = (ListItem)value; 90/// <para>Adds the specified <see cref='System.Web.UI.WebControls.ListItem'/> to the end of the collection.</para> 92public void Add(ListItem item) { 102ListItem newItem = (ListItem) item; 113public void AddRange(ListItem[] items) { 117foreach(ListItem item in items) { 124/// <para>Removes all <see cref='System.Web.UI.WebControls.ListItem'/> controls from the collection.</para> 137public bool Contains(ListItem item) { 144return Contains((ListItem) item); 157public ListItem FindByText(string text) { 160return (ListItem)listItems[index]; 167foreach (ListItem item in listItems) { 176public ListItem FindByValue(string value) { 179return (ListItem)listItems[index]; 186foreach (ListItem item in listItems) { 196/// <para>Returns an enumerator of all <see cref='System.Web.UI.WebControls.ListItem'/> controls within the 206/// position of the specified <see cref='System.Web.UI.WebControls.ListItem'/> within the collection.</para> 208public int IndexOf(ListItem item) { 215return IndexOf((ListItem) item); 229/// <para>Inserts the specified <see cref='System.Web.UI.WebControls.ListItem'/> to the collection at the specified 232public void Insert(int index,ListItem item) { 241Insert(index, (ListItem) item); 271/// <para>Removes the <see cref='System.Web.UI.WebControls.ListItem'/> from the collection at the specified 293/// <para>Removes the specified <see cref='System.Web.UI.WebControls.ListItem'/> from the collection.</para> 295public void Remove(ListItem item) { 305Remove((ListItem) item); 349ListItem li = new ListItem();
UI\WebControls\RadioButtonList.cs (1)
489ListItem item = Items[repeatIndexOffset];
UI\WebParts\BehaviorEditorPart.cs (2)
272_exportMode.Items.AddRange(new ListItem[] { 284_helpMode.Items.AddRange(new ListItem[] {
UI\WebParts\CatalogZoneBase.cs (1)
661ListItem item = new ListItem(zone.DisplayTitle, zone.ID);
UI\WebParts\ConnectionsZone.cs (3)
2107ListItem selectedItem = list.Items.FindByValue(value); 2165ListItem item = new ListItem(); 2220ListItem item = new ListItem();
UI\WebParts\LayoutEditorPart.cs (2)
165ListItem item = new ListItem(zone.DisplayTitle, zone.ID); 248foreach (ListItem item in _zone.Items) {
UI\WebParts\RowToFieldTransformer.cs (1)
127ListItem item = new ListItem(OldProviderNames[2*i], OldProviderNames[2*i + 1]);
UI\WebParts\RowToParametersTransformer.cs (4)
241ListItem[] consumerItems = null; 244consumerItems = new ListItem[oldConsumerNamesLength / 2]; 290foreach (ListItem consumerItem in consumerItems) { 291ListItem item = new ListItem(consumerItem.Text, consumerItem.Value);