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