77 references to DefaultIndex
System.Windows.Forms (77)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (6)
411
ImageIndex = ImageList.Indexer.
DefaultIndex
;
451
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
457
get => _imageIndex.Index != ImageList.Indexer.
DefaultIndex
&& _imageList is not null && _imageIndex.Index >= _imageList.Images.Count
462
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
464
if (value == _imageIndex.Index && value != ImageList.Indexer.
DefaultIndex
)
469
if (value != ImageList.Indexer.
DefaultIndex
)
System\Windows\Forms\Controls\ImageList\ImageList.Indexer.cs (3)
23
private int _index =
DefaultIndex
;
34
_index =
DefaultIndex
;
65
return
DefaultIndex
;
System\Windows\Forms\Controls\Labels\Label.cs (5)
410
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
431
return ImageList.Indexer.
DefaultIndex
;
435
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
437
if (ImageIndex == value && value != ImageList.Indexer.
DefaultIndex
)
442
if (value != ImageList.Indexer.
DefaultIndex
)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
188
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
197
if (_imageIndexer.Index != ImageList.Indexer.
DefaultIndex
&& ImageList is not null && _imageIndexer.Index >= ImageList.Images.Count)
206
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
208
if (_imageIndexer.Index == value && value != ImageList.Indexer.
DefaultIndex
)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5738
if (group.TitleImageIndex != ImageList.Indexer.
DefaultIndex
|| group.TitleImageKey != ImageList.Indexer.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (2)
274
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
276
if (ImageIndexer.Index == value && value != ImageList.Indexer.
DefaultIndex
)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (11)
74
: this(text, ImageList.Indexer.
DefaultIndex
)
86
: this(items, ImageList.Indexer.
DefaultIndex
)
465
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
483
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
669
_state[s_stateImageMaskSet] = (value == ImageList.Indexer.
DefaultIndex
? 0 : 1);
715
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
735
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
740
_state[s_stateImageMaskSet] = (value == ImageList.Indexer.
DefaultIndex
? 0 : 1);
1083
if (SavedStateImageIndex > ImageList.Indexer.
DefaultIndex
)
1188
int imageIndex = ImageList.Indexer.
DefaultIndex
;
1244
else if (imageIndex != ImageList.Indexer.
DefaultIndex
)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
56
&& _owningItem.ImageIndex != ImageList.Indexer.
DefaultIndex
;
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
78
values[nImages] = ImageList.Indexer.
DefaultIndex
;
97
return new StandardValuesCollection(new object[] { ImageList.Indexer.
DefaultIndex
});
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1064
ImageIndex = ImageList.Indexer.
DefaultIndex
;
1117
if ((Owner is not null) && ImageIndexer.Index != ImageList.Indexer.
DefaultIndex
1127
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
3346
=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.Indexer.
DefaultIndex
;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (20)
503
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
511
&& ImageIndexer.Index != ImageList.Indexer.
DefaultIndex
526
&& value != ImageList.Indexer.
DefaultIndex
)
884
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
894
&& SelectedImageIndexer.Index != ImageList.Indexer.
DefaultIndex
909
&& value != ImageList.Indexer.
DefaultIndex
)
1009
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
1020
if (StateImageIndexer.Index != ImageList.Indexer.
DefaultIndex
&&
1031
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.
DefaultIndex
);
1034
if (StateImageIndexer.Index == value && value != ImageList.Indexer.
DefaultIndex
)
1485
int imageIndex = ImageList.Indexer.
DefaultIndex
;
1488
int selectedImageIndex = ImageList.Indexer.
DefaultIndex
;
1491
int stateImageIndex = ImageList.Indexer.
DefaultIndex
;
1546
else if (imageIndex != ImageList.Indexer.
DefaultIndex
)
1556
else if (selectedImageIndex != ImageList.Indexer.
DefaultIndex
)
1566
else if (stateImageIndex != ImageList.Indexer.
DefaultIndex
)
1845
tvis.item.iImage = (ImageIndexer.ActualIndex == ImageList.Indexer.
DefaultIndex
) ? tv.ImageIndexer.ActualIndex : ImageIndexer.ActualIndex;
1846
tvis.item.iSelectedImage = (SelectedImageIndexer.ActualIndex == ImageList.Indexer.
DefaultIndex
) ? tv.SelectedImageIndexer.ActualIndex : SelectedImageIndexer.ActualIndex;
2174
if (StateImageIndexer.ActualIndex != ImageList.Indexer.
DefaultIndex
)
2198
=> actualIndex is ImageList.Indexer.NoneIndex or ImageList.Indexer.
DefaultIndex
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (10)
526
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
540
return ImageList.Indexer.
DefaultIndex
;
556
if (value == ImageList.Indexer.
DefaultIndex
)
596
ImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.
DefaultIndex
;
998
[DefaultValue(ImageList.Indexer.
DefaultIndex
)]
1011
return ImageList.Indexer.
DefaultIndex
;
1027
if (value == ImageList.Indexer.
DefaultIndex
)
1068
SelectedImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.
DefaultIndex
;
2375
return SelectedImageIndex != ImageList.Indexer.
DefaultIndex
;
2385
return ImageIndex != ImageList.Indexer.
DefaultIndex
;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (4)
32
return ImageList.Indexer.
DefaultIndex
;
56
if (index == ImageList.Indexer.
DefaultIndex
)
122
values[nImages - 2] = ImageList.Indexer.
DefaultIndex
;
139
ImageList.Indexer.
DefaultIndex
,
System\Windows\Forms\ImageIndexConverter.cs (4)
55
return ImageList.Indexer.
DefaultIndex
;
72
if (destinationType == typeof(string) && value is int index && index == ImageList.Indexer.
DefaultIndex
)
148
values[nImages] = ImageList.Indexer.
DefaultIndex
;
168
return new StandardValuesCollection(new object[] { ImageList.Indexer.
DefaultIndex
});