1 write to owner
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ImageList.cs (1)
1044this.owner = owner;
42 references to owner
System.Windows.Forms (42)
winforms\Managed\System\WinForms\ImageList.cs (42)
1058Debug.Assert(owner != null, "ImageCollection has no owner (ImageList)"); 1059Debug.Assert( (owner.originals == null) == (owner.HandleCreated), " Either we should have the original images, or the handle should be created"); 1070Debug.Assert(owner != null, "ImageCollection has no owner (ImageList)"); 1072if (owner.HandleCreated) { 1073return SafeNativeMethods.ImageList_GetImageCount(new HandleRef(owner, owner.Handle)); 1077foreach(Original original in owner.originals) { 1142return owner.GetBitmap(index); 1159if (owner.UseTransparentColor) { 1164bitmap.MakeTransparent(owner.transparentColor); 1171bool ok = SafeNativeMethods.ImageList_Replace(new HandleRef(owner, owner.Handle), index, new HandleRef(null, hBitmap), new HandleRef(null, hMask)); 1327if (owner.originals != null) { 1328index = owner.originals.Add(original); 1331if (owner.HandleCreated) { 1333Bitmap bitmapValue = owner.CreateBitmap(original, out ownsBitmap); 1334index = owner.AddToHandle(original, bitmapValue); 1340if (owner.originals != null) { 1341index = owner.originals.Add(original); 1343if (owner.HandleCreated) { 1344index = owner.AddIconToHandle(original, (Icon)original.image); 1365if (!owner.inAddRange) 1366owner.OnChangeHandle(new EventArgs()); 1379owner.inAddRange = true; 1383owner.inAddRange = false; 1384owner.OnChangeHandle(new EventArgs()); 1400if (value.Width == 0 || (value.Width % owner.ImageSize.Width) != 0) 1402if (value.Height != owner.ImageSize.Height) 1405int nImages = value.Width / owner.ImageSize.Width; 1418if (owner.originals != null) 1419owner.originals.Clear(); 1423if (owner.HandleCreated) 1424SafeNativeMethods.ImageList_Remove(new HandleRef(owner, owner.Handle), -1); 1426owner.OnChangeHandle(new EventArgs()); 1534dest.SetValue(owner.GetBitmap(i), index++); 1548images[i] = owner.GetBitmap(i); 1567owner.OnChangeHandle(new EventArgs()); 1580bool ok = SafeNativeMethods.ImageList_Remove(new HandleRef(owner, owner.Handle), index); 1586owner.OnChangeHandle(new EventArgs());