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