81 writes to ImageList
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1535
ImageList
= null;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
188
ImageList
= _selectorImageList
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1985
ImageList
= CreateCopy(s_defaultImages);
2013
ImageList
= scaledImageList;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
459
_treeView1.
ImageList
= actualTreeView.ImageList;
466
_treeView1.
ImageList
= null;
System.Windows.Forms.Tests (74)
System\Windows\Forms\TreeNodeTests.cs (24)
994
control.
ImageList
= imageList;
1033
control.
ImageList
= imageList;
1067
control.
ImageList
= imageList;
1087
ImageList
= imageList
1126
ImageList
= imageList
1177
control.
ImageList
= imageList;
1229
ImageList
= imageList
1260
ImageList
= imageList
1384
ImageList
= imageList
1417
ImageList
= imageList
1505
ImageList
= imageList
1537
ImageList
= imageList
2976
control.
ImageList
= imageList;
3015
control.
ImageList
= imageList;
3049
control.
ImageList
= imageList;
3069
ImageList
= imageList
3108
ImageList
= imageList
3159
control.
ImageList
= imageList;
3213
ImageList
= imageList
3244
ImageList
= imageList
3368
ImageList
= imageList
3401
ImageList
= imageList
3489
ImageList
= imageList
3521
ImageList
= imageList
System\Windows\Forms\TreeViewTests.cs (50)
2059
ImageList
= imageList,
2082
ImageList
= imageList,
2106
ImageList
= imageList,
2131
ImageList
= imageList,
2172
ImageList
= imageList
2198
ImageList
= imageList
2273
ImageList
= imageList,
2293
ImageList
= imageList,
2314
ImageList
= imageList,
2341
ImageList
= imageList,
2378
ImageList
= imageList
2401
ImageList
= imageList
2431
ImageList
= value
2436
treeView.
ImageList
= value;
2447
ImageList
= value
2452
treeView.
ImageList
= value;
2463
ImageList
= imageList
2466
treeView.
ImageList
= value;
2470
treeView.
ImageList
= value;
2481
ImageList
= value
2486
treeView.
ImageList
= value;
2497
treeView.
ImageList
= value;
2501
treeView.
ImageList
= value;
2515
treeView.
ImageList
= value;
2519
treeView.
ImageList
= value;
2530
ImageList
= imageList
2534
treeView.
ImageList
= value;
2538
treeView.
ImageList
= value;
2552
treeView.
ImageList
= value;
2556
treeView.
ImageList
= value;
2567
ImageList
= imageList1
2575
treeView.
ImageList
= imageList2;
2586
ImageList
= imageList
2598
ImageList
= imageList
2611
ImageList
= imageList
2626
ImageList
= imageList
3419
ImageList
= imageList,
3442
ImageList
= imageList,
3466
ImageList
= imageList,
3491
ImageList
= imageList,
3532
ImageList
= imageList
3558
ImageList
= imageList
3623
ImageList
= imageList,
3643
ImageList
= imageList,
3664
ImageList
= imageList,
3691
ImageList
= imageList,
3728
ImageList
= imageList
3751
ImageList
= imageList
6023
ImageList
= imageList,
6103
ImageList
= imageList,
WinFormsControlsTest (1)
TreeViewTest.Designer.cs (1)
44
this.treeView1.
ImageList
= this.imageList1;
54 references to ImageList
System.Windows.Forms (15)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (7)
512
&& tv?.
ImageList
is not null
513
&& ImageIndexer.Index >= tv.
ImageList
.Images.Count)
515
return tv.
ImageList
.Images.Count - 1;
895
&& tv?.
ImageList
is not null
896
&& SelectedImageIndexer.Index >= tv.
ImageList
.Images.Count)
898
return tv.
ImageList
.Images.Count - 1;
2215
tv.
ImageList
is { } imageList && ImageIndexer.ActualIndex >= imageList.Images.Count
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (1)
35
return _owner.TreeView.
ImageList
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
103
_imageIndexer.ImageList =
ImageList
;
114
_selectedImageIndexer.ImageList =
ImageList
;
596
ImageIndex = (
ImageList
is not null) ? 0 : ImageList.Indexer.DefaultIndex;
1068
SelectedImageIndex = (
ImageList
is not null) ? 0 : ImageList.Indexer.DefaultIndex;
1693
IntPtr handle = (
ImageList
is null) ? IntPtr.Zero :
ImageList
.Handle;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
98
ImageList? imageList =
ImageList
;
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1984
ImageList
?.Dispose();
1988
_imageListCacheByDPI.Add(ScaleHelper.OneHundredPercentLogicalDpi,
ImageList
);
2260
ImageList.ImageCollection? images = _picker?._treeViewCtrl?.
ImageList
?.Images;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
456
if (actualTreeView.
ImageList
is not null)
459
_treeView1.ImageList = actualTreeView.
ImageList
;
System\Windows\Forms\Design\TreeViewActionList.cs (2)
25
get => _treeView.
ImageList
;
26
set => TypeDescriptor.GetProperties(_treeView)[nameof(TreeView.
ImageList
)]!.SetValue(Component, value);
System.Windows.Forms.Tests (32)
System\Windows\Forms\TreeViewTests.cs (32)
75
Assert.Null(control.
ImageList
);
2433
Assert.Same(value, treeView.
ImageList
);
2437
Assert.Same(value, treeView.
ImageList
);
2449
Assert.Same(value, treeView.
ImageList
);
2453
Assert.Same(value, treeView.
ImageList
);
2467
Assert.Same(value, treeView.
ImageList
);
2471
Assert.Same(value, treeView.
ImageList
);
2483
Assert.Same(value, treeView.
ImageList
);
2487
Assert.Same(value, treeView.
ImageList
);
2498
Assert.Same(value, treeView.
ImageList
);
2502
Assert.Same(value, treeView.
ImageList
);
2516
Assert.Same(value, treeView.
ImageList
);
2520
Assert.Same(value, treeView.
ImageList
);
2535
Assert.Same(value, treeView.
ImageList
);
2539
Assert.Same(value, treeView.
ImageList
);
2553
Assert.Same(value, treeView.
ImageList
);
2557
Assert.Same(value, treeView.
ImageList
);
2569
Assert.Same(imageList1, treeView.
ImageList
);
2572
Assert.Null(treeView.
ImageList
);
2577
Assert.Same(imageList2, treeView.
ImageList
);
2588
Assert.Same(imageList, treeView.
ImageList
);
2600
Assert.Same(imageList, treeView.
ImageList
);
2613
Assert.Same(imageList, treeView.
ImageList
);
2628
Assert.Same(imageList, treeView.
ImageList
);
6051
Assert.Same(imageList, control.
ImageList
);
6052
Assert.True(control.
ImageList
.HandleCreated);
6069
Assert.Same(imageList, control.
ImageList
);
6070
Assert.True(control.
ImageList
.HandleCreated);
6132
Assert.Same(imageList, control.
ImageList
);
6133
Assert.True(control.
ImageList
.HandleCreated);
6150
Assert.Same(imageList, control.
ImageList
);
6151
Assert.True(control.
ImageList
.HandleCreated);