6 types derived from Indexer
System.Windows.Forms (6)
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
11internal class LabelImageIndexer : ImageList.Indexer
System\Windows\Forms\Controls\ListView\ColumnHeader.ColumnHeaderImageListIndexer.cs (1)
8internal class ColumnHeaderImageListIndexer : ImageList.Indexer
System\Windows\Forms\Controls\ListView\ListViewGroupImageIndexer.cs (1)
11internal class ListViewGroupImageIndexer : ImageList.Indexer
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (1)
11internal class ListViewItemImageIndexer : ImageList.Indexer
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemImageIndexer.cs (1)
8internal class ToolStripItemImageIndexer : ImageList.Indexer
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (1)
10internal partial class TreeNodeImageIndexer : ImageList.Indexer
4 instantiations of Indexer
System.Windows.Forms (4)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
24private readonly ImageList.Indexer _imageIndex = new();
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
214internal 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)
24private readonly ImageList.Indexer _imageIndex = new(); 411ImageIndex = ImageList.Indexer.DefaultIndex; 451[DefaultValue(ImageList.Indexer.DefaultIndex)] 457get => _imageIndex.Index != ImageList.Indexer.DefaultIndex && _imageList is not null && _imageIndex.Index >= _imageList.Images.Count 462ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 464if (value == _imageIndex.Index && value != ImageList.Indexer.DefaultIndex) 469if (value != ImageList.Indexer.DefaultIndex) 498[DefaultValue(ImageList.Indexer.DefaultKey)] 507if (value == _imageIndex.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\Labels\Label.cs (7)
410[DefaultValue(ImageList.Indexer.DefaultIndex)] 431return ImageList.Indexer.DefaultIndex; 435ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 437if (ImageIndex == value && value != ImageList.Indexer.DefaultIndex) 442if (value != ImageList.Indexer.DefaultIndex) 459[DefaultValue(ImageList.Indexer.DefaultKey)] 469if (ImageKey == value && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (6)
188[DefaultValue(ImageList.Indexer.DefaultIndex)] 197if (_imageIndexer.Index != ImageList.Indexer.DefaultIndex && ImageList is not null && _imageIndexer.Index >= ImageList.Images.Count) 206ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 208if (_imageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 232[DefaultValue(ImageList.Indexer.DefaultKey)] 245if (value == _imageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5734if (group.TitleImageIndex != ImageList.Indexer.DefaultIndex || group.TitleImageKey != ImageList.Indexer.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (3)
274ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 276if (ImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 305if (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)] 483ArgumentOutOfRangeException.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)] 735ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 740_state[s_stateImageMaskSet] = (value == ImageList.Indexer.DefaultIndex ? 0 : 1); 1083if (SavedStateImageIndex > ImageList.Indexer.DefaultIndex) 1188int imageIndex = ImageList.Indexer.DefaultIndex; 1244else 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)
78values[nImages] = ImageList.Indexer.DefaultIndex; 97return new StandardValuesCollection(new object[] { ImageList.Indexer.DefaultIndex });
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
22private ImageList.Indexer? _imageIndexer; 214internal ImageList.Indexer ImageIndexer => _imageIndexer ??= new ImageList.Indexer();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1064ImageIndex = ImageList.Indexer.DefaultIndex; 1117if ((Owner is not null) && ImageIndexer.Index != ImageList.Indexer.DefaultIndex 1127ArgumentOutOfRangeException.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)] 510if (ImageIndexer.Index != ImageList.Indexer.NoneIndex 511&& ImageIndexer.Index != ImageList.Indexer.DefaultIndex 522ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 525&& value != ImageList.Indexer.NoneIndex 526&& value != ImageList.Indexer.DefaultIndex) 544[DefaultValue(ImageList.Indexer.DefaultKey)] 554if (value == ImageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 884[DefaultValue(ImageList.Indexer.DefaultIndex)] 893if (SelectedImageIndexer.Index != ImageList.Indexer.NoneIndex 894&& SelectedImageIndexer.Index != ImageList.Indexer.DefaultIndex 905ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 908&& value != ImageList.Indexer.NoneIndex 909&& value != ImageList.Indexer.DefaultIndex) 927[DefaultValue(ImageList.Indexer.DefaultKey)] 937if (SelectedImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 984[DefaultValue(ImageList.Indexer.DefaultKey)] 994if (StateImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 1009[DefaultValue(ImageList.Indexer.DefaultIndex)] 1020if (StateImageIndexer.Index != ImageList.Indexer.DefaultIndex && 1031ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 1034if (StateImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 1485int imageIndex = ImageList.Indexer.DefaultIndex; 1488int selectedImageIndex = ImageList.Indexer.DefaultIndex; 1491int stateImageIndex = ImageList.Indexer.DefaultIndex; 1546else if (imageIndex != ImageList.Indexer.DefaultIndex) 1556else if (selectedImageIndex != ImageList.Indexer.DefaultIndex) 1566else if (stateImageIndex != ImageList.Indexer.DefaultIndex) 1845tvis.item.iImage = (ImageIndexer.ActualIndex == ImageList.Indexer.DefaultIndex) ? tv.ImageIndexer.ActualIndex : ImageIndexer.ActualIndex; 1846tvis.item.iSelectedImage = (SelectedImageIndexer.ActualIndex == ImageList.Indexer.DefaultIndex) ? tv.SelectedImageIndexer.ActualIndex : SelectedImageIndexer.ActualIndex; 2174if (StateImageIndexer.ActualIndex != ImageList.Indexer.DefaultIndex) 2198=> actualIndex is ImageList.Indexer.NoneIndex or ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeView.cs (16)
49private ImageList.Indexer? _imageIndexer; 50private ImageList.Indexer? _selectedImageIndexer; 98internal ImageList.Indexer ImageIndexer 108internal ImageList.Indexer SelectedImageIndexer 526[DefaultValue(ImageList.Indexer.DefaultIndex)] 540return ImageList.Indexer.DefaultIndex; 556if (value == ImageList.Indexer.DefaultIndex) 581[DefaultValue(ImageList.Indexer.DefaultKey)] 596ImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex; 998[DefaultValue(ImageList.Indexer.DefaultIndex)] 1011return ImageList.Indexer.DefaultIndex; 1027if (value == ImageList.Indexer.DefaultIndex) 1052[DefaultValue(ImageList.Indexer.DefaultKey)] 1068SelectedImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex; 2375return SelectedImageIndex != ImageList.Indexer.DefaultIndex; 2385return ImageIndex != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (7)
32return ImageList.Indexer.DefaultIndex; 36return ImageList.Indexer.NoneIndex; 56if (index == ImageList.Indexer.DefaultIndex) 60else if (index == ImageList.Indexer.NoneIndex) 122values[nImages - 2] = ImageList.Indexer.DefaultIndex; 139ImageList.Indexer.DefaultIndex, 140ImageList.Indexer.NoneIndex
System\Windows\Forms\ImageIndexConverter.cs (4)
55return ImageList.Indexer.DefaultIndex; 72if (destinationType == typeof(string) && value is int index && index == ImageList.Indexer.DefaultIndex) 148values[nImages] = ImageList.Indexer.DefaultIndex; 168return new StandardValuesCollection(new object[] { ImageList.Indexer.DefaultIndex });