16 references to ImageIndexer
System.Windows.Forms (16)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (16)
1031if (image is null && Owner?.ImageList is not null && ImageIndexer.ActualIndex >= 0) 1034if (!disposing && ImageIndexer.ActualIndex < Owner.ImageList.Images.Count) 1037image = Owner.ImageList.Images[ImageIndexer.ActualIndex]; 1122if ((Owner is not null) && ImageIndexer.Index != ImageList.Indexer.DefaultIndex 1123&& Owner.ImageList is not null && ImageIndexer.Index >= Owner.ImageList.Images.Count) 1128return ImageIndexer.Index; 1134ImageIndexer.Index = value; 1162get => ImageIndexer.Key; 1165ImageIndexer.Key = value; 1562bool usingImageList = ((Owner is not null) && (Owner.ImageList is not null) && (ImageIndexer.ActualIndex >= 0)); 2399if (ImageIndexer.ActualIndex >= 0) 3341private bool ShouldSerializeImage() => Image is not null && ImageIndexer.ActualIndex < 0; 3348=> Image is not null && ImageIndexer.ActualIndex >= 0 && !string.IsNullOrEmpty(ImageIndexer.Key); 3355=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.Indexer.DefaultIndex;