6 types derived from Indexer
System.Windows.Forms (6)
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
11
internal class LabelImageIndexer : ImageList.
Indexer
System\Windows\Forms\Controls\ListView\ColumnHeader.ColumnHeaderImageListIndexer.cs (1)
8
internal class ColumnHeaderImageListIndexer : ImageList.
Indexer
System\Windows\Forms\Controls\ListView\ListViewGroupImageIndexer.cs (1)
11
internal class ListViewGroupImageIndexer : ImageList.
Indexer
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (1)
11
internal class ListViewItemImageIndexer : ImageList.
Indexer
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemImageIndexer.cs (1)
8
internal class ToolStripItemImageIndexer : ImageList.
Indexer
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (1)
10
internal partial class TreeNodeImageIndexer : ImageList.
Indexer
4 instantiations of Indexer
System.Windows.Forms (4)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
24
private readonly ImageList.Indexer _imageIndex =
new
();
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
214
internal ImageList.Indexer ImageIndexer => _imageIndexer ??= new ImageList.
Indexer
();
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
102
_imageIndexer ??= new ImageList.
Indexer
();
112
_selectedImageIndexer ??= new ImageList.
Indexer
();
108 references to Indexer
System.Windows.Forms (108)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (9)
24
private readonly ImageList.
Indexer
_imageIndex = new();
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)
498
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
507
if (value == _imageIndex.Key && !string.Equals(value, ImageList.
Indexer
.DefaultKey))
System\Windows\Forms\Controls\Labels\Label.cs (7)
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)
459
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
469
if (ImageKey == value && !string.Equals(value, ImageList.
Indexer
.DefaultKey))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (6)
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)
232
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
245
if (value == _imageIndexer.Key && !string.Equals(value, ImageList.
Indexer
.DefaultKey))
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5734
if (group.TitleImageIndex != ImageList.
Indexer
.DefaultIndex || group.TitleImageKey != ImageList.
Indexer
.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (3)
274
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.
Indexer
.DefaultIndex);
276
if (ImageIndexer.Index == value && value != ImageList.
Indexer
.DefaultIndex)
305
if (ImageIndexer.Key == value && value != ImageList.
Indexer
.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (12)
74
: this(text, ImageList.
Indexer
.DefaultIndex)
86
: this(items, ImageList.
Indexer
.DefaultIndex)
465
[DefaultValue(ImageList.
Indexer
.DefaultIndex)]
483
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.
Indexer
.DefaultIndex);
499
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
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\TabControl\TabPage.cs (2)
22
private ImageList.
Indexer
? _imageIndexer;
214
internal ImageList.
Indexer
ImageIndexer => _imageIndexer ??= new ImageList.Indexer();
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);
3354
=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.
Indexer
.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (33)
503
[DefaultValue(ImageList.
Indexer
.DefaultIndex)]
510
if (ImageIndexer.Index != ImageList.
Indexer
.NoneIndex
511
&& ImageIndexer.Index != ImageList.
Indexer
.DefaultIndex
522
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.
Indexer
.NoneIndex);
525
&& value != ImageList.
Indexer
.NoneIndex
526
&& value != ImageList.
Indexer
.DefaultIndex)
544
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
554
if (value == ImageIndexer.Key && !string.Equals(value, ImageList.
Indexer
.DefaultKey))
884
[DefaultValue(ImageList.
Indexer
.DefaultIndex)]
893
if (SelectedImageIndexer.Index != ImageList.
Indexer
.NoneIndex
894
&& SelectedImageIndexer.Index != ImageList.
Indexer
.DefaultIndex
905
ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.
Indexer
.NoneIndex);
908
&& value != ImageList.
Indexer
.NoneIndex
909
&& value != ImageList.
Indexer
.DefaultIndex)
927
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
937
if (SelectedImageIndexer.Key == value && !string.Equals(value, ImageList.
Indexer
.DefaultKey))
984
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
994
if (StateImageIndexer.Key == value && !string.Equals(value, ImageList.
Indexer
.DefaultKey))
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 (16)
49
private ImageList.
Indexer
? _imageIndexer;
50
private ImageList.
Indexer
? _selectedImageIndexer;
98
internal ImageList.
Indexer
ImageIndexer
108
internal ImageList.
Indexer
SelectedImageIndexer
526
[DefaultValue(ImageList.
Indexer
.DefaultIndex)]
540
return ImageList.
Indexer
.DefaultIndex;
556
if (value == ImageList.
Indexer
.DefaultIndex)
581
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
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)
1052
[DefaultValue(ImageList.
Indexer
.DefaultKey)]
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 (7)
32
return ImageList.
Indexer
.DefaultIndex;
36
return ImageList.
Indexer
.NoneIndex;
56
if (index == ImageList.
Indexer
.DefaultIndex)
60
else if (index == ImageList.
Indexer
.NoneIndex)
122
values[nImages - 2] = ImageList.
Indexer
.DefaultIndex;
139
ImageList.
Indexer
.DefaultIndex,
140
ImageList.
Indexer
.NoneIndex
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 });