1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
58_owner = owner;
35 references to _owner
System.Windows.Forms (35)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (35)
74Debug.Assert(_owner is not null, "ImageCollection has no owner (ImageList)"); 75Debug.Assert((_owner._originals is null) == (_owner.HandleCreated), " Either we should have the original images, or the handle should be created"); 83Debug.Assert(_owner is not null, "ImageCollection has no owner (ImageList)"); 85if (_owner.HandleCreated) 87return PInvoke.ImageList.GetImageCount(_owner); 91if (_owner._originals is null) 97foreach (Original original in _owner._originals) 132return _owner.GetBitmap(index); 147if (_owner.UseTransparentColor && bitmap.RawFormat.Guid != ImageFormat.Icon.Guid) 152bitmap.MakeTransparent(_owner.TransparentColor); 163ok = PInvoke.ImageList.Replace(_owner, index, hBitmap, hMask); 314if (_owner._originals is not null) 316index = ((IList)_owner._originals).Add(original); 319if (_owner.HandleCreated) 321Bitmap bitmapValue = _owner.CreateBitmap(original, out bool ownsBitmap); 322index = _owner.AddToHandle(bitmapValue); 331if (_owner._originals is not null) 333index = ((IList)_owner._originals).Add(original); 336if (_owner.HandleCreated) 338index = _owner.AddIconToHandle(original, originalIcon); 365_owner.OnChangeHandle(EventArgs.Empty); 382_owner.OnChangeHandle(EventArgs.Empty); 394if (value.Width == 0 || (value.Width % _owner.ImageSize.Width) != 0) 399if (value.Height != _owner.ImageSize.Height) 404int nImages = value.Width / _owner.ImageSize.Width; 417_owner._originals?.Clear(); 421if (_owner.HandleCreated) 423PInvoke.ImageList.Remove(_owner, -1); 426_owner.OnChangeHandle(EventArgs.Empty); 511dest.SetValue(_owner.GetBitmap(i), index++); 523images[i] = _owner.GetBitmap(i); 538_owner.OnChangeHandle(EventArgs.Empty); 548if (!PInvoke.ImageList.Remove(_owner, index)) 557_owner.OnChangeHandle(EventArgs.Empty);