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