104 references to Items
System.Web (97)
UI\WebControls\BulletedList.cs (6)
457
if (
Items
.Count == 0 && !RenderWhenDataEmpty) {
472
for (int i = 0; i <
Items
.Count; i++) {
473
Items
[i].RenderAttributes(writer);
475
RenderBulletText(
Items
[i], i, writer);
481
Items
[i].RenderAttributes(writer);
483
RenderBulletText(
Items
[i], i, writer);
UI\WebControls\CheckBoxList.cs (7)
248
for (int i=0; i <
Items
.Count; i++) {
270
if (
Items
.Count == 0 && !EnableLegacyRendering && !RenderWhenDataEmpty) {
367
if (index >= 0 && index <
Items
.Count) {
368
ListItem item =
Items
[index];
491
return (
Items
!= null) ?
Items
.Count : 0;
530
ListItem item =
Items
[repeatIndexOffset];
UI\WebControls\DropDownList.cs (3)
103
if (selectedIndex < 0 &&
Items
.Count > 0) {
104
Items
[0].Selected = true;
162
int n =
Items
.FindByValueInternal(selectedItems[0], false);
UI\WebControls\Listbox.cs (2)
200
int n =
Items
.FindByValueInternal(selectedItems[0], false);
215
newSelectedIndices.Add(
Items
.FindByValueInternal(selectedItems[i], false));
UI\WebControls\ListControl.cs (29)
255
foreach (ListItem item in
Items
) {
292
for (int i=0; i <
Items
.Count; i++) {
293
if (
Items
[i].Selected)
300
if (
Items
.Count == 0) {
309
if ((
Items
.Count != 0 && value <
Items
.Count) || value == -1) {
312
Items
[value].Selected = true;
339
for (int i=0; i <
Items
.Count; i++) {
340
if (
Items
[i].Selected) {
364
return(i < 0) ? null :
Items
[i];
386
return (i < 0) ? String.Empty :
Items
[i].Value;
389
if (
Items
.Count != 0) {
396
ListItem selectItem =
Items
.FindByValue(value);
552
for (int i=0; i <
Items
.Count; i++)
553
Items
[i].Selected = false;
571
Items
.LoadViewState(stateTriplet.Second);
687
Items
.Clear();
692
Items
.Capacity = collection.Count +
Items
.Count;
723
Items
.Add(item);
731
cachedSelectedValueIndex =
Items
.FindByValueInternal(cachedSelectedValue, true);
774
ListItemCollection liCollection =
Items
;
822
object items =
Items
.SaveViewState();
844
if (n >= 0 && n <
Items
.Count)
845
Items
[n].Selected = true;
874
if (
Items
.Count != 0) {
875
if (selectedIndex <
Items
.Count) {
878
Items
[selectedIndex].Selected = true;
890
Items
.TrackViewState();
UI\WebControls\RadioButtonList.cs (7)
254
int n =
Items
.Count;
256
if (post ==
Items
[i].Value &&
Items
[i].Enabled) {
316
if (
Items
.Count == 0 && !EnableLegacyRendering && !RenderWhenDataEmpty) {
444
return (
Items
!= null) ?
Items
.Count : 0;
489
ListItem item =
Items
[repeatIndexOffset];
UI\WebParts\AppearanceEditorPart.cs (17)
184
_chromeType.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeType_Default),
186
_chromeType.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeType_TitleAndBorder),
188
_chromeType.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeType_TitleOnly),
190
_chromeType.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeType_BorderOnly),
192
_chromeType.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeType_None),
198
_direction.
Items
.Add(new ListItem(SR.GetString(SR.ContentDirection_NotSet),
200
_direction.
Items
.Add(new ListItem(SR.GetString(SR.ContentDirection_LeftToRight),
202
_direction.
Items
.Add(new ListItem(SR.GetString(SR.ContentDirection_RightToLeft),
338
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Pixels),
340
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Points),
342
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Picas),
344
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Inches),
346
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Millimeters),
348
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Centimeters),
350
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Percent),
352
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Em),
354
_type.
Items
.Add(new ListItem(SR.GetString(SR.AppearanceEditorPart_Ex),
UI\WebParts\BehaviorEditorPart.cs (2)
272
_exportMode.
Items
.AddRange(new ListItem[] {
284
_helpMode.
Items
.AddRange(new ListItem[] {
UI\WebParts\CatalogZoneBase.cs (4)
654
zonesDropDownList.
Items
.Add(SR.GetString(SR.Zone_SampleHeaderText));
665
zonesDropDownList.
Items
.Add(item);
673
if (zonesDropDownList.
Items
.Count > 0) {
685
if (zonesDropDownList.
Items
.Count > 0) {
UI\WebParts\ConnectionsZone.cs (9)
2107
ListItem selectedItem = list.
Items
.FindByValue(value);
2131
list.
Items
.Clear();
2139
list.
Items
.Add(new ListItem(SR.GetString(SR.ConnectionsZone_NoConsumers), String.Empty));
2143
list.
Items
.Add(new ListItem());
2174
list.
Items
.Add(item);
2186
list.
Items
.Clear();
2194
list.
Items
.Add(new ListItem(SR.GetString(SR.ConnectionsZone_NoProviders), String.Empty));
2198
list.
Items
.Add(new ListItem());
2228
list.
Items
.Add(item);
UI\WebParts\LayoutEditorPart.cs (5)
151
_chromeState.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeState_Normal),
153
_chromeState.
Items
.Add(new ListItem(SR.GetString(SR.PartChromeState_Minimized),
166
_zone.
Items
.Add(item);
202
_zone.
Items
.Add(SR.GetString(SR.Zone_SampleHeaderText));
248
foreach (ListItem item in _zone.
Items
) {
UI\WebParts\PropertyGridEditorPart.cs (1)
202
dropDownList.
Items
.Add(new ListItem(text));
UI\WebParts\RowToFieldTransformer.cs (2)
133
_fieldName.
Items
.Add(item);
137
_fieldName.
Items
.Add(new ListItem(SR.GetString(SR.RowToFieldTransformer_NoProviderSchema)));
UI\WebParts\RowToParametersTransformer.cs (3)
269
consumerFieldName.
Items
.Add(new ListItem());
297
consumerFieldName.
Items
.Add(item);
301
consumerFieldName.
Items
.Add(new ListItem(
System.Web.DynamicData (7)
DynamicData\FieldTemplateUserControl.cs (2)
310
Misc.FillListItemCollection(ForeignKeyColumn.ParentTable, listControl.
Items
);
319
list.
Items
.Add(new ListItem((string)entry.Key, (string)entry.Value));
DynamicData\FilterUserControlBase.cs (3)
326
listControl.
Items
.Add(new ListItem(DynamicDataResources.FilterUserControlBase_BooleanFilter_TrueString, bool.TrueString));
327
listControl.
Items
.Add(new ListItem(DynamicDataResources.FilterUserControlBase_BooleanFilter_FalseString, bool.FalseString));
341
Misc.FillListItemCollection(FilterTable, listControl.
Items
);
DynamicData\QueryableFilterUserControl.cs (2)
48
Misc.FillListItemCollection(FilterTable, listControl.
Items
);
58
list.
Items
.Add(new ListItem((string)entry.Key, (string)entry.Value));