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