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