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