1 override of Index
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
39public override int Index
21 writes to Index
System.Windows.Forms (21)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
476_imageIndex.Index = value;
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
44base.Index = value;
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
213_imageIndexer.Index = value;
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
281ImageIndexer.Index = value;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
81ImageIndexer.Index = imageIndex; 93ImageIndexer.Index = imageIndex; 119ImageIndexer.Index = imageIndex; 485ImageIndexer.Index = value; 918newItem.ImageIndexer.Index = ImageIndexer.Index;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
238ImageIndexer.Index = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1129ImageIndexer.Index = value;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (6)
531ImageIndexer.Index = value; 914SelectedImageIndexer.Index = value; 1039StateImageIndexer.Index = value; 1354node.ImageIndexer.Index = ImageIndexer.Index; 1355node.SelectedImageIndexer.Index = SelectedImageIndexer.Index; 1357node.StateImageIndexer.Index = StateImageIndexer.Index;
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
167SelectedImageIndexer.Index = 0; 168ImageIndexer.Index = 0; 565ImageIndexer.Index = value; 1036SelectedImageIndexer.Index = value;
51 references to Index
System.Windows.Forms (51)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (4)
457get => _imageIndex.Index != ImageList.Indexer.DefaultIndex && _imageList is not null && _imageIndex.Index >= _imageList.Images.Count 459: _imageIndex.Index; 464if (value == _imageIndex.Index && value != ImageList.Indexer.DefaultIndex)
System\Windows\Forms\Controls\ImageList\ImageList.Indexer.cs (1)
57return Index;
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
41get => base.Index;
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
197if (_imageIndexer.Index != ImageList.Indexer.DefaultIndex && ImageList is not null && _imageIndexer.Index >= ImageList.Images.Count) 202return _imageIndexer.Index; 208if (_imageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (3)
268return imageList is null || ImageIndexer.Index < imageList.Images.Count 269? ImageIndexer.Index 276if (ImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
477return ImageList is null || ImageIndexer.Index < ImageList.Images.Count 478? ImageIndexer.Index 906newItem = new ListViewItem(clonedSubItems, ImageIndexer.Index); 918newItem.ImageIndexer.Index = ImageIndexer.Index; 1267info.AddValue(nameof(ImageIndex), ImageIndexer.Index);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
228get => ImageIndexer.Index;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1117if ((Owner is not null) && ImageIndexer.Index != ImageList.Indexer.DefaultIndex 1118&& Owner.ImageList is not null && ImageIndexer.Index >= Owner.ImageList.Images.Count) 1123return ImageIndexer.Index; 3346=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (22)
510if (ImageIndexer.Index != ImageList.Indexer.NoneIndex 511&& ImageIndexer.Index != ImageList.Indexer.DefaultIndex 513&& ImageIndexer.Index >= tv.ImageList.Images.Count) 518return ImageIndexer.Index; 524if (ImageIndexer.Index == value 893if (SelectedImageIndexer.Index != ImageList.Indexer.NoneIndex 894&& SelectedImageIndexer.Index != ImageList.Indexer.DefaultIndex 896&& SelectedImageIndexer.Index >= tv.ImageList.Images.Count) 901return SelectedImageIndexer.Index; 907if (SelectedImageIndexer.Index == value 1020if (StateImageIndexer.Index != ImageList.Indexer.DefaultIndex && 1022StateImageIndexer.Index >= tv.StateImageList.Images.Count) 1027return StateImageIndexer.Index; 1034if (StateImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 1349? new TreeNode(_text, ImageIndexer.Index, SelectedImageIndexer.Index) 1354node.ImageIndexer.Index = ImageIndexer.Index; 1355node.SelectedImageIndexer.Index = SelectedImageIndexer.Index; 1357node.StateImageIndexer.Index = StateImageIndexer.Index; 2064si.AddValue(nameof(ImageIndex), ImageIndexer.Index); 2066si.AddValue(nameof(SelectedImageIndex), SelectedImageIndexer.Index); 2071si.AddValue("StateImageIndex", StateImageIndexer.Index);
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
543if (ImageIndexer.Index >= _imageList.Images.Count) 548return ImageIndexer.Index; 563if (ImageIndexer.Index != value) 1014if (SelectedImageIndexer.Index >= _imageList.Images.Count) 1019return SelectedImageIndexer.Index; 1034if (SelectedImageIndexer.Index != value)