25 writes to SelectedImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1068SelectedImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
461_treeView1.SelectedImageIndex = actualTreeView.SelectedImageIndex; 468_treeView1.SelectedImageIndex = -1;
System.Windows.Forms.Tests (22)
System\Windows\Forms\TreeViewTests.cs (22)
3378SelectedImageIndex = value 3384treeView.SelectedImageIndex = value; 3398SelectedImageIndex = value 3404treeView.SelectedImageIndex = value; 3420SelectedImageIndex = value 3426treeView.SelectedImageIndex = value; 3443SelectedImageIndex = value 3449treeView.SelectedImageIndex = value; 3467SelectedImageIndex = value 3473treeView.SelectedImageIndex = value; 3492SelectedImageIndex = value 3498treeView.SelectedImageIndex = value; 3512treeView.SelectedImageIndex = value; 3517treeView.SelectedImageIndex = value; 3536treeView.SelectedImageIndex = value; 3541treeView.SelectedImageIndex = value; 3562treeView.SelectedImageIndex = value; 3567treeView.SelectedImageIndex = value; 3576Assert.Throws<ArgumentOutOfRangeException>("value", () => treeView.SelectedImageIndex = -2); 3604SelectedImageIndex = 1, 3642SelectedImageIndex = 1, 3690SelectedImageIndex = 1,
40 references to SelectedImageIndex
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2372return SelectedImageIndex != 0; 2375return SelectedImageIndex != ImageList.Indexer.DefaultIndex;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
461_treeView1.SelectedImageIndex = actualTreeView.SelectedImageIndex;
System.Windows.Forms.Tests (37)
System\Windows\Forms\TreeViewTests.cs (37)
105Assert.Equal(-1, control.SelectedImageIndex); 3380Assert.Equal(-1, treeView.SelectedImageIndex); 3385Assert.Equal(-1, treeView.SelectedImageIndex); 3400Assert.Equal(-1, treeView.SelectedImageIndex); 3405Assert.Equal(-1, treeView.SelectedImageIndex); 3422Assert.Equal(0, treeView.SelectedImageIndex); 3427Assert.Equal(0, treeView.SelectedImageIndex); 3445Assert.Equal(0, treeView.SelectedImageIndex); 3450Assert.Equal(0, treeView.SelectedImageIndex); 3469Assert.Equal(expected, treeView.SelectedImageIndex); 3474Assert.Equal(expected, treeView.SelectedImageIndex); 3494Assert.Equal(expected, treeView.SelectedImageIndex); 3499Assert.Equal(expected, treeView.SelectedImageIndex); 3513Assert.Equal(-1, treeView.SelectedImageIndex); 3518Assert.Equal(-1, treeView.SelectedImageIndex); 3537Assert.Equal(0, treeView.SelectedImageIndex); 3542Assert.Equal(0, treeView.SelectedImageIndex); 3563Assert.Equal(expected, treeView.SelectedImageIndex); 3568Assert.Equal(expected, treeView.SelectedImageIndex); 3589Assert.Equal(-1, treeView.SelectedImageIndex); 3594Assert.Equal(-1, treeView.SelectedImageIndex); 3608Assert.Equal(-1, treeView.SelectedImageIndex); 3613Assert.Equal(-1, treeView.SelectedImageIndex); 3627Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3632Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3647Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3652Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3668Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3673Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3695Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3700Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3713Assert.Equal(-1, treeView.SelectedImageIndex); 3718Assert.Equal(-1, treeView.SelectedImageIndex); 3734Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3739Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3757Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex); 3762Assert.Equal(expectedImageIndex, treeView.SelectedImageIndex);