41 writes to StateImageList
System.Windows.Forms (1)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1545
StateImageList
= null;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
473
_treeView1.
StateImageList
= actualTreeView.StateImageList;
477
_treeView1.
StateImageList
= null;
System.Windows.Forms.Tests (38)
System\Windows\Forms\TreeNodeTests.cs (17)
3599
control.
StateImageList
= imageList;
3642
control.
StateImageList
= imageList;
3691
control.
StateImageList
= imageList;
3712
StateImageList
= imageList
3760
StateImageList
= imageList
3826
control.
StateImageList
= imageList;
3878
StateImageList
= imageList
3910
StateImageList
= imageList
3960
control.
StateImageList
= imageList;
3996
control.
StateImageList
= imageList;
4024
control.
StateImageList
= imageList;
4056
control.
StateImageList
= imageList;
4095
control.
StateImageList
= imageList;
4108
StateImageList
= imageList
4150
StateImageList
= imageList
4249
StateImageList
= imageList
4289
StateImageList
= imageList
System\Windows\Forms\TreeViewTests.cs (21)
2480
StateImageList
= value,
2548
StateImageList
= value
4476
StateImageList
= value
4481
treeView.
StateImageList
= value;
4492
StateImageList
= imageList
4495
treeView.
StateImageList
= value;
4499
treeView.
StateImageList
= value;
4510
treeView.
StateImageList
= value;
4514
treeView.
StateImageList
= value;
4525
StateImageList
= imageList
4529
treeView.
StateImageList
= value;
4533
treeView.
StateImageList
= value;
4544
StateImageList
= imageList1
4552
treeView.
StateImageList
= imageList2;
4563
StateImageList
= imageList
4575
StateImageList
= imageList
4588
StateImageList
= imageList
4603
StateImageList
= imageList
6024
StateImageList
= stateImageList,
6104
StateImageList
= stateImageList,
6262
StateImageList
= imageList
40 references to StateImageList
System.Windows.Forms (12)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (8)
1021
tv?.
StateImageList
is not null &&
1022
StateImageIndexer.Index >= tv.
StateImageList
.Images.Count)
1024
return tv.
StateImageList
.Images.Count - 1;
1638
if (_treeView.CheckBoxes && _treeView.
StateImageList
is not null)
1643
StateImageKey = _treeView.
StateImageList
.Images.Keys[StateImageIndex];
1858
else if (tv.
StateImageList
is not null && StateImageIndexer.ActualIndex >= 0)
2069
if (_treeView is not null && _treeView.
StateImageList
is not null)
2074
if (_treeView is not null && _treeView.
StateImageList
is not null)
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (1)
31
return _owner.TreeView.
StateImageList
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
631
if (
StateImageList
is not null &&
StateImageList
.Images.Count > 0 && _internalStateImageList is not null)
2625
if (
StateImageList
is not null)
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
471
if (actualTreeView.
StateImageList
is not null)
473
_treeView1.StateImageList = actualTreeView.
StateImageList
;
System.Windows.Forms.Tests (26)
System\Windows\Forms\TreeViewTests.cs (26)
117
Assert.Null(control.
StateImageList
);
4478
Assert.Same(value, treeView.
StateImageList
);
4482
Assert.Same(value, treeView.
StateImageList
);
4496
Assert.Same(value, treeView.
StateImageList
);
4500
Assert.Same(value, treeView.
StateImageList
);
4511
Assert.Same(value, treeView.
StateImageList
);
4515
Assert.Same(value, treeView.
StateImageList
);
4530
Assert.Same(value, treeView.
StateImageList
);
4534
Assert.Same(value, treeView.
StateImageList
);
4546
Assert.Same(imageList1, treeView.
StateImageList
);
4549
Assert.Null(treeView.
StateImageList
);
4554
Assert.Same(imageList2, treeView.
StateImageList
);
4565
Assert.Same(imageList, treeView.
StateImageList
);
4577
Assert.Same(imageList, treeView.
StateImageList
);
4590
Assert.Same(imageList, treeView.
StateImageList
);
4605
Assert.Same(imageList, treeView.
StateImageList
);
6053
Assert.Same(stateImageList, control.
StateImageList
);
6054
Assert.Equal(expectedStateImageListHandleCreated, control.
StateImageList
.HandleCreated);
6071
Assert.Same(stateImageList, control.
StateImageList
);
6072
Assert.Equal(expectedStateImageListHandleCreated, control.
StateImageList
.HandleCreated);
6134
Assert.Same(stateImageList, control.
StateImageList
);
6135
Assert.Equal(expectedStateImageListHandleCreated, control.
StateImageList
.HandleCreated);
6152
Assert.Same(stateImageList, control.
StateImageList
);
6153
Assert.Equal(expectedStateImageListHandleCreated, control.
StateImageList
.HandleCreated);
6278
Assert.Same(imageList, control.
StateImageList
);
6286
Assert.Same(imageList, control.
StateImageList
);