23 writes to SelectedImageIndex
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
149
SelectedImageIndex
= selectedImageIndex;
1558
SelectedImageIndex
= selectedImageIndex;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2246
SelectedImageIndex
= value;
System.Windows.Forms.Tests (20)
System\Windows\Forms\TreeNodeTests.cs (20)
2957
SelectedImageIndex
= value
2963
node.
SelectedImageIndex
= value;
2996
SelectedImageIndex
= value
3002
node.
SelectedImageIndex
= value;
3036
node.
SelectedImageIndex
= value;
3042
node.
SelectedImageIndex
= value;
3074
node.
SelectedImageIndex
= value;
3080
node.
SelectedImageIndex
= value;
3113
node.
SelectedImageIndex
= value;
3119
node.
SelectedImageIndex
= value;
3140
node.
SelectedImageIndex
= value;
3149
node.
SelectedImageIndex
= value;
3190
node.
SelectedImageIndex
= value;
3219
node.
SelectedImageIndex
= value;
3250
node.
SelectedImageIndex
= value;
3273
node.
SelectedImageIndex
= value;
3278
node.
SelectedImageIndex
= value;
3288
Assert.Throws<ArgumentOutOfRangeException>("value", () => node.
SelectedImageIndex
= value);
3300
node.
SelectedImageIndex
= 0;
3329
SelectedImageIndex
= 0,
51 references to SelectedImageIndex
System.Windows.Forms (5)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1517
case nameof(
SelectedImageIndex
):
2066
si.AddValue(nameof(
SelectedImageIndex
), SelectedImageIndexer.Index);
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (3)
48
if (node.ImageIndex == -1 || node.
SelectedImageIndex
== -1)
79
node.
SelectedImageIndex
99
node.
SelectedImageIndex
,
System.Windows.Forms.Tests (46)
System\Windows\Forms\TreeNodeCollectionTests.cs (3)
47
Assert.Equal(-1, treeNode.
SelectedImageIndex
);
394
treeNode.
SelectedImageIndex
.Should().Be(selectedImageIndex.Value);
495
treeNode.
SelectedImageIndex
.Should().Be(selectedImageIndex.Value);
System\Windows\Forms\TreeNodeTests.cs (43)
42
Assert.Equal(-1, node.
SelectedImageIndex
);
82
Assert.Equal(-1, node.
SelectedImageIndex
);
130
Assert.Equal(-1, node.
SelectedImageIndex
);
173
Assert.Equal(selectedImageIndex, node.
SelectedImageIndex
);
221
Assert.Equal(selectedImageIndex, node.
SelectedImageIndex
);
2959
Assert.Equal(value, node.
SelectedImageIndex
);
2964
Assert.Equal(value, node.
SelectedImageIndex
);
2970
Assert.Equal(value, node.
SelectedImageIndex
);
2977
Assert.Equal(-1, node.
SelectedImageIndex
);
2984
Assert.Equal(expectedWithImage, node.
SelectedImageIndex
);
2998
Assert.Equal(value, node.
SelectedImageIndex
);
3003
Assert.Equal(value, node.
SelectedImageIndex
);
3009
Assert.Equal(value, node.
SelectedImageIndex
);
3016
Assert.Equal(expectedWithoutImage, node.
SelectedImageIndex
);
3023
Assert.Equal(expectedWithImage, node.
SelectedImageIndex
);
3037
Assert.Equal(value, node.
SelectedImageIndex
);
3043
Assert.Equal(value, node.
SelectedImageIndex
);
3050
Assert.Equal(expectedWithoutImage, node.
SelectedImageIndex
);
3057
Assert.Equal(expectedWithImage, node.
SelectedImageIndex
);
3075
Assert.Equal(expectedWithoutImage, node.
SelectedImageIndex
);
3081
Assert.Equal(expectedWithoutImage, node.
SelectedImageIndex
);
3088
Assert.Equal(expectedWithImage, node.
SelectedImageIndex
);
3114
Assert.Equal(expected, node.
SelectedImageIndex
);
3120
Assert.Equal(expected, node.
SelectedImageIndex
);
3141
Assert.Equal(value, node.
SelectedImageIndex
);
3150
Assert.Equal(value, node.
SelectedImageIndex
);
3160
Assert.Equal(expectedWithoutImage, node.
SelectedImageIndex
);
3170
Assert.Equal(expectedWithImage, node.
SelectedImageIndex
);
3274
Assert.Equal(value, node.
SelectedImageIndex
);
3279
Assert.Equal(value, node.
SelectedImageIndex
);
3301
Assert.Equal(0, node.
SelectedImageIndex
);
3313
Assert.Equal(-1, node.
SelectedImageIndex
);
3318
Assert.Equal(-1, node.
SelectedImageIndex
);
3333
Assert.Equal(ImageList.Indexer.DefaultIndex, node.
SelectedImageIndex
);
3338
Assert.Equal(ImageList.Indexer.DefaultIndex, node.
SelectedImageIndex
);
3351
Assert.Equal(-1, node.
SelectedImageIndex
);
3357
Assert.Equal(-1, node.
SelectedImageIndex
);
3375
Assert.Equal(-1, node.
SelectedImageIndex
);
3381
Assert.Equal(-1, node.
SelectedImageIndex
);
3408
Assert.Equal(-1, node.
SelectedImageIndex
);
3414
Assert.Equal(-1, node.
SelectedImageIndex
);
3435
Assert.Equal(-1, node.
SelectedImageIndex
);
3444
Assert.Equal(-1, node.
SelectedImageIndex
);