10 instantiations of ImageList
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
492ImageList images = new ImageList();
System.Windows.Forms (6)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2059_largeButtonImages = new ImageList 3828_normalButtonImages = new ImageList();
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1783_internalStateImageList = new ImageList(); 1974ImageList newImageList = new();
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
182_selectorImageList = new ImageList
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
56_imageList = new ImageList();
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1906ImageList defaultImages = new() 1918ImageList copy = new() 1936ImageList copy = new()
222 references to ImageList
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
492ImageList images = new ImageList();
System.Windows.Forms (190)
misc\ImageListUtils.cs (1)
48if (typeof(ImageList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (12)
24private readonly ImageList.Indexer _imageIndex = new(); 26private ImageList? _imageList; 457ImageIndex = ImageList.Indexer.DefaultIndex; 502[DefaultValue(ImageList.Indexer.DefaultIndex)] 508get => _imageIndex.Index != ImageList.Indexer.DefaultIndex && _imageList is not null && _imageIndex.Index >= _imageList.Images.Count 513ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 515if (value == _imageIndex.Index && value != ImageList.Indexer.DefaultIndex) 520if (value != ImageList.Indexer.DefaultIndex) 549[DefaultValue(ImageList.Indexer.DefaultKey)] 558if (value == _imageIndex.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 576/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Drawing.Image"/> 583public ImageList? ImageList
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
367/// Add the given <paramref name="bitmap"/> to the <see cref="ImageList"/> handle. 472/// Releases the unmanaged resources used by the <see cref="ImageList" />
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
19private readonly ImageList _owner; 56internal ImageCollection(ImageList owner)
System\Windows\Forms\Controls\ImageList\ImageList.Indexer.cs (1)
26public virtual ImageList? ImageList { get; set; }
System\Windows\Forms\Controls\ImageList\ImageListConverter.cs (1)
10public ImageListConverter() : base(typeof(ImageList))
System\Windows\Forms\Controls\ImageList\ImageListStreamer.cs (5)
18private readonly ImageList? _imageList; 19private ImageList.NativeImageList? _nativeImageList; 21internal ImageListStreamer(ImageList imageList) => _imageList = imageList; 77_nativeImageList = new ImageList.NativeImageList(new ComManagedStream(memoryStream)); 109internal ImageList.NativeImageList? GetNativeImageList() => _nativeImageList;
System\Windows\Forms\Controls\Labels\Label.cs (10)
408[DefaultValue(ImageList.Indexer.DefaultIndex)] 429return ImageList.Indexer.DefaultIndex; 433ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 435if (ImageIndex == value && value != ImageList.Indexer.DefaultIndex) 440if (value != ImageList.Indexer.DefaultIndex) 457[DefaultValue(ImageList.Indexer.DefaultKey)] 467if (ImageKey == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 503public ImageList? ImageList 505get => Properties.GetValueOrDefault<ImageList>(s_propImageList); 508ImageList? imageList = ImageList;
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (2)
11internal class LabelImageIndexer : ImageList.Indexer 22public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ColumnHeader.ColumnHeaderImageListIndexer.cs (2)
8internal class ColumnHeaderImageListIndexer : ImageList.Indexer 17public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (7)
188[DefaultValue(ImageList.Indexer.DefaultIndex)] 197if (_imageIndexer.Index != ImageList.Indexer.DefaultIndex && ImageList is not null && _imageIndexer.Index >= ImageList.Images.Count) 206ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 208if (_imageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 223public ImageList? ImageList 232[DefaultValue(ImageList.Indexer.DefaultKey)] 245if (value == _imageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\ListView\ListView.cs (17)
112private ImageList? _imageListLarge; 113private ImageList? _imageListSmall; 114private ImageList? _imageListState; 115private ImageList? _imageListGroup; 918/// An <see cref="ImageList"/> that contains the icons to use for <see cref="ListViewGroup"/>. 923/// The <see cref="GroupImageList"/> property allows you to specify an <see cref="ImageList"/> object that 925/// format that the <see cref="ImageList"/> control supports when displaying icons. The <see cref="ListView"/> 926/// control is not limited to .ico files. Once an <see cref="ImageList"/> is assigned to the <see cref="GroupImageList"/> 928/// in the <see cref="ListView"/> control to the index position of the appropriate image in the <see cref="ImageList"/>. 929/// The size of the icons for the <see cref="GroupImageList"/> is specified by the <see cref="ImageList.ImageSize"/> property. 935public ImageList? GroupImageList 1199public ImageList? LargeImageList 1438public ImageList? SmallImageList 1544public ImageList? StateImageList 2970if (sender is ImageList imageList && !imageList.IsDisposed && 5802if (group.TitleImageIndex != ImageList.Indexer.DefaultIndex || group.TitleImageKey != ImageList.Indexer.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (4)
285ImageList? imageList = ImageIndexer.ImageList; 292ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 294if (ImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 323if (ImageIndexer.Key == value && value != ImageList.Indexer.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroupImageIndexer.cs (2)
11internal class ListViewGroupImageIndexer : ImageList.Indexer 28public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ListViewItem.cs (13)
74: this(text, ImageList.Indexer.DefaultIndex) 86: this(items, ImageList.Indexer.DefaultIndex) 465[DefaultValue(ImageList.Indexer.DefaultIndex)] 483ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 499[DefaultValue(ImageList.Indexer.DefaultKey)] 521public ImageList? ImageList 669_state[s_stateImageMaskSet] = (value == ImageList.Indexer.DefaultIndex ? 0 : 1); 715[DefaultValue(ImageList.Indexer.DefaultIndex)] 735ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 740_state[s_stateImageMaskSet] = (value == ImageList.Indexer.DefaultIndex ? 0 : 1); 1083if (SavedStateImageIndex > ImageList.Indexer.DefaultIndex) 1188int imageIndex = ImageList.Indexer.DefaultIndex; 1244else if (imageIndex != ImageList.Indexer.DefaultIndex)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
56&& _owningItem.ImageIndex != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (2)
11internal class ListViewItemImageIndexer : ImageList.Indexer 27public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (4)
48ImageList? imageList = null; 65imageList = (ImageList?)listViewImageListProperty.GetValue(listViewInstance); 78values[nImages] = ImageList.Indexer.DefaultIndex; 97return new StandardValuesCollection(new object[] { ImageList.Indexer.DefaultIndex });
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
34private ImageList? _normalButtonImages; 35private ImageList? _largeButtonImages; 2083ImageList.ImageCollection images = _normalButtonImages.Images;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
31private ImageList? _imageList; 455public ImageList? ImageList
System\Windows\Forms\Controls\TabControl\TabPage.cs (3)
22private ImageList.Indexer? _imageIndexer; 220internal ImageList.Indexer ImageIndexer => _imageIndexer ??= new ImageList.Indexer();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
41private ImageList? _imageList; 942/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Image"/> displayed on a label control. 948public ImageList? ImageList 2578/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Image"/> displayed on a label control
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1069ImageIndex = ImageList.Indexer.DefaultIndex; 1122if ((Owner is not null) && ImageIndexer.Index != ImageList.Indexer.DefaultIndex 1132ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 3347=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemImageIndexer.cs (2)
8internal class ToolStripItemImageIndexer : ImageList.Indexer 18public override ImageList? ImageList
System\Windows\Forms\Controls\TreeView\TreeNode.cs (33)
503[DefaultValue(ImageList.Indexer.DefaultIndex)] 510if (ImageIndexer.Index != ImageList.Indexer.NoneIndex 511&& ImageIndexer.Index != ImageList.Indexer.DefaultIndex 522ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 525&& value != ImageList.Indexer.NoneIndex 526&& value != ImageList.Indexer.DefaultIndex) 544[DefaultValue(ImageList.Indexer.DefaultKey)] 554if (value == ImageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 884[DefaultValue(ImageList.Indexer.DefaultIndex)] 893if (SelectedImageIndexer.Index != ImageList.Indexer.NoneIndex 894&& SelectedImageIndexer.Index != ImageList.Indexer.DefaultIndex 905ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 908&& value != ImageList.Indexer.NoneIndex 909&& value != ImageList.Indexer.DefaultIndex) 927[DefaultValue(ImageList.Indexer.DefaultKey)] 937if (SelectedImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 984[DefaultValue(ImageList.Indexer.DefaultKey)] 994if (StateImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 1009[DefaultValue(ImageList.Indexer.DefaultIndex)] 1020if (StateImageIndexer.Index != ImageList.Indexer.DefaultIndex && 1031ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 1034if (StateImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 1482int imageIndex = ImageList.Indexer.DefaultIndex; 1485int selectedImageIndex = ImageList.Indexer.DefaultIndex; 1488int stateImageIndex = ImageList.Indexer.DefaultIndex; 1543else if (imageIndex != ImageList.Indexer.DefaultIndex) 1553else if (selectedImageIndex != ImageList.Indexer.DefaultIndex) 1563else if (stateImageIndex != ImageList.Indexer.DefaultIndex) 1842tvis.item.iImage = (ImageIndexer.ActualIndex == ImageList.Indexer.DefaultIndex) ? tv.ImageIndexer.ActualIndex : ImageIndexer.ActualIndex; 1843tvis.item.iSelectedImage = (SelectedImageIndexer.ActualIndex == ImageList.Indexer.DefaultIndex) ? tv.SelectedImageIndexer.ActualIndex : SelectedImageIndexer.ActualIndex; 2169if (StateImageIndexer.ActualIndex != ImageList.Indexer.DefaultIndex) 2193=> actualIndex is ImageList.Indexer.NoneIndex or ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (2)
10internal partial class TreeNodeImageIndexer : ImageList.Indexer 23public override ImageList? ImageList
System\Windows\Forms\Controls\TreeView\TreeView.cs (24)
49private ImageList.Indexer? _imageIndexer; 50private ImageList.Indexer? _selectedImageIndexer; 98internal ImageList.Indexer ImageIndexer 102_imageIndexer ??= new ImageList.Indexer(); 108internal ImageList.Indexer SelectedImageIndexer 112_selectedImageIndexer ??= new ImageList.Indexer(); 120private ImageList? _imageList; 136private ImageList? _internalStateImageList; 138private ImageList? _stateImageList; 524[DefaultValue(ImageList.Indexer.DefaultIndex)] 538return ImageList.Indexer.DefaultIndex; 554if (value == ImageList.Indexer.DefaultIndex) 579[DefaultValue(ImageList.Indexer.DefaultKey)] 594ImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex; 612public ImageList? ImageList 688public ImageList? StateImageList 996[DefaultValue(ImageList.Indexer.DefaultIndex)] 1009return ImageList.Indexer.DefaultIndex; 1025if (value == ImageList.Indexer.DefaultIndex) 1050[DefaultValue(ImageList.Indexer.DefaultKey)] 1066SelectedImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex; 1974ImageList newImageList = new(); 2369return SelectedImageIndex != ImageList.Indexer.DefaultIndex; 2379return ImageIndex != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (10)
32return ImageList.Indexer.DefaultIndex; 36return ImageList.Indexer.NoneIndex; 56if (index == ImageList.Indexer.DefaultIndex) 60else if (index == ImageList.Indexer.NoneIndex) 89if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) 115ImageList? imageList = (ImageList?)imageListProp.GetValue(instance); 122values[nImages - 2] = ImageList.Indexer.DefaultIndex; 139ImageList.Indexer.DefaultIndex, 140ImageList.Indexer.NoneIndex
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.cs (1)
135public ImageList ImageList
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
27private ImageList _selectorImageList;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
98ImageList? imageList = ImageList;
System\Windows\Forms\ImageIndexConverter.cs (7)
55return ImageList.Indexer.DefaultIndex; 72if (destinationType == typeof(string) && value is int index && index == ImageList.Indexer.DefaultIndex) 112if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) 138ImageList? imageList = (ImageList?)imageListProp.GetValue(instance); 148values[nImages] = ImageList.Indexer.DefaultIndex; 168return new StandardValuesCollection(new object[] { ImageList.Indexer.DefaultIndex });
System\Windows\Forms\ImageKeyConverter.cs (3)
118if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) 144ImageList? imageList = (ImageList?)imageListProp.GetValue(instance);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
46private readonly ImageList _imageList;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
314public void DrawImage(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex)
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\DesignBindingPicker.cs (14)
1899protected internal static readonly ImageList s_defaultImages = CreateUnscaledDefaultImages(); 1901private static ImageList CreateUnscaledDefaultImages() 1906ImageList defaultImages = new() 1916private static ImageList CreateCopy(ImageList imageList) 1918ImageList copy = new() 1932private static ImageList CreateScaledCopy(ImageList imageList, int dpi) 1936ImageList copy = new() 1956private readonly Dictionary<int, ImageList> _imageListCacheByDPI = []; 1970foreach (var imageList in _imageListCacheByDPI.Values) 2000if (!_imageListCacheByDPI.TryGetValue(dpi, out ImageList? scaledImageList)) 2002ImageList unscaledImageList = _imageListCacheByDPI[ScaleHelper.OneHundredPercentLogicalDpi]; 2254ImageList.ImageCollection? images = _picker?._treeViewCtrl?.ImageList?.Images;
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (2)
42CodeDomSerializer baseSerializer = manager.GetSerializer<CodeDomSerializer>(typeof(ImageList).BaseType)!; 45if (value is ImageList imageList)
System\Windows\Forms\Design\ImageCollectionEditor.cs (2)
90if (editValue is not ImageList.ImageCollection source) 106if (editValue is not ImageList.ImageCollection source)
System\Windows\Forms\Design\ImageIndexEditor.cs (5)
15protected ImageList? _currentImageList; 53(ImageList?)currentProperty.GetValue(_currentInstance) != _currentImageList)) 67if (typeof(ImageList).IsAssignableFrom(property.PropertyType)) 84_currentImageList = (ImageList?)imageListProperty.GetValue(instance); 172if (typeof(ImageList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\Design\ImageListActionList.cs (2)
24get => (Component as ImageList)!.ColorDepth; 36get => (Component as ImageList)!.ImageSize;
System\Windows\Forms\Design\ImageListDesigner.cs (2)
51internal ImageList ImageList => (ImageList)Component;
System\Windows\Forms\Design\ListViewActionList.cs (2)
36public ImageList? LargeImageList 42public ImageList? SmallImageList
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
47CodeDomSerializer baseSerializer = manager.GetSerializer<CodeDomSerializer>(typeof(ImageList).BaseType)!;
System\Windows\Forms\Design\TreeViewActionList.cs (1)
23public ImageList? ImageList