1 override of ActualIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
49
public override int
ActualIndex
38 references to ActualIndex
System.Windows.Forms (38)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
378
int actualIndex = _imageIndex.
ActualIndex
;
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
91
int imgIndex = _imageIndexer.
ActualIndex
;
System\Windows\Forms\Controls\ListView\ListView.cs (7)
2524
if (Items[i].ImageIndexer.
ActualIndex
> -1)
3684
group.TitleImageIndex = group.ImageIndexer.
ActualIndex
< _imageListGroup.Images.Count
3685
? group.ImageIndexer.
ActualIndex
4126
iImage = li.ImageIndexer.
ActualIndex
,
4312
int imageIndex = item.ImageIndexer.
ActualIndex
< _imageListLarge.Images.Count
4313
? item.ImageIndexer.
ActualIndex
5740
lvgroup.iTitleImage = group.ImageIndexer.
ActualIndex
;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
489
_listView.SetItemImage(itemIndex: Index, imageIndex: ImageIndexer.
ActualIndex
);
515
_listView.SetItemImage(Index, ImageIndexer.
ActualIndex
);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
2121
tcitem.iImage = tabPage.ImageIndexer.
ActualIndex
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
1026
if (image is null && Owner?.ImageList is not null && ImageIndexer.
ActualIndex
>= 0)
1029
if (!disposing && ImageIndexer.
ActualIndex
< Owner.ImageList.Images.Count)
1032
image = Owner.ImageList.Images[ImageIndexer.
ActualIndex
];
1557
bool usingImageList = ((Owner is not null) && (Owner.ImageList is not null) && (ImageIndexer.
ActualIndex
>= 0));
2392
if (ImageIndexer.
ActualIndex
>= 0)
3332
private bool ShouldSerializeImage() => Image is not null && ImageIndexer.
ActualIndex
< 0;
3339
=> Image is not null && ImageIndexer.
ActualIndex
>= 0 && !string.IsNullOrEmpty(ImageIndexer.Key);
3346
=> Image is not null && ImageIndexer.
ActualIndex
>= 0 && ImageIndexer.Index != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (18)
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
;
1858
else if (tv.StateImageList is not null && StateImageIndexer.
ActualIndex
>= 0)
1862
tvis.item.state = (TREE_VIEW_ITEM_STATE_FLAGS)((StateImageIndexer.
ActualIndex
+ 1) << SHIFTVAL);
2155
item.iImage = IsSpecialImageIndex(ImageIndexer.
ActualIndex
)
2156
? tv.ImageIndexer.
ActualIndex
2157
: ImageIndexer.
ActualIndex
;
2162
item.iSelectedImage = IsSpecialImageIndex(SelectedImageIndexer.
ActualIndex
)
2163
? tv.SelectedImageIndexer.
ActualIndex
2164
: SelectedImageIndexer.
ActualIndex
;
2174
if (StateImageIndexer.
ActualIndex
!= ImageList.Indexer.DefaultIndex)
2176
item.state = (TREE_VIEW_ITEM_STATE_FLAGS)((StateImageIndexer.
ActualIndex
+ 1) << SHIFTVAL);
2215
tv.ImageList is { } imageList && ImageIndexer.
ActualIndex
>= imageList.Images.Count
2217
: ImageIndexer.
ActualIndex
)