16 references to ImageIndexer
System.Windows.Forms (16)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (16)
1026if (image is null && Owner?.ImageList is not null && ImageIndexer.ActualIndex >= 0) 1029if (!disposing && ImageIndexer.ActualIndex < Owner.ImageList.Images.Count) 1032image = Owner.ImageList.Images[ImageIndexer.ActualIndex]; 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; 1129ImageIndexer.Index = value; 1157get => ImageIndexer.Key; 1160ImageIndexer.Key = value; 1557bool usingImageList = ((Owner is not null) && (Owner.ImageList is not null) && (ImageIndexer.ActualIndex >= 0)); 2392if (ImageIndexer.ActualIndex >= 0) 3332private 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;