25 writes to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
596
ImageIndex
= (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
460
_treeView1.
ImageIndex
= actualTreeView.ImageIndex;
467
_treeView1.
ImageIndex
= -1;
System.Windows.Forms.Tests (22)
System\Windows\Forms\TreeViewTests.cs (22)
2018
ImageIndex
= value
2024
treeView.
ImageIndex
= value;
2038
ImageIndex
= value
2044
treeView.
ImageIndex
= value;
2060
ImageIndex
= value
2066
treeView.
ImageIndex
= value;
2083
ImageIndex
= value
2089
treeView.
ImageIndex
= value;
2107
ImageIndex
= value
2113
treeView.
ImageIndex
= value;
2132
ImageIndex
= value
2138
treeView.
ImageIndex
= value;
2152
treeView.
ImageIndex
= value;
2157
treeView.
ImageIndex
= value;
2176
treeView.
ImageIndex
= value;
2181
treeView.
ImageIndex
= value;
2202
treeView.
ImageIndex
= value;
2207
treeView.
ImageIndex
= value;
2216
Assert.Throws<ArgumentOutOfRangeException>("value", () => treeView.
ImageIndex
= -2);
2244
ImageIndex
= 1,
2292
ImageIndex
= 1,
2340
ImageIndex
= 1,
40 references to ImageIndex
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2382
return
ImageIndex
!= 0;
2385
return
ImageIndex
!= ImageList.Indexer.DefaultIndex;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
460
_treeView1.ImageIndex = actualTreeView.
ImageIndex
;
System.Windows.Forms.Tests (37)
System\Windows\Forms\TreeViewTests.cs (37)
73
Assert.Equal(-1, control.
ImageIndex
);
2020
Assert.Equal(-1, treeView.
ImageIndex
);
2025
Assert.Equal(-1, treeView.
ImageIndex
);
2040
Assert.Equal(-1, treeView.
ImageIndex
);
2045
Assert.Equal(-1, treeView.
ImageIndex
);
2062
Assert.Equal(0, treeView.
ImageIndex
);
2067
Assert.Equal(0, treeView.
ImageIndex
);
2085
Assert.Equal(0, treeView.
ImageIndex
);
2090
Assert.Equal(0, treeView.
ImageIndex
);
2109
Assert.Equal(expected, treeView.
ImageIndex
);
2114
Assert.Equal(expected, treeView.
ImageIndex
);
2134
Assert.Equal(expected, treeView.
ImageIndex
);
2139
Assert.Equal(expected, treeView.
ImageIndex
);
2153
Assert.Equal(-1, treeView.
ImageIndex
);
2158
Assert.Equal(-1, treeView.
ImageIndex
);
2177
Assert.Equal(0, treeView.
ImageIndex
);
2182
Assert.Equal(0, treeView.
ImageIndex
);
2203
Assert.Equal(expected, treeView.
ImageIndex
);
2208
Assert.Equal(expected, treeView.
ImageIndex
);
2229
Assert.Equal(-1, treeView.
ImageIndex
);
2234
Assert.Equal(-1, treeView.
ImageIndex
);
2248
Assert.Equal(-1, treeView.
ImageIndex
);
2253
Assert.Equal(-1, treeView.
ImageIndex
);
2277
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2282
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2297
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2302
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2318
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2323
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2345
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2350
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2363
Assert.Equal(-1, treeView.
ImageIndex
);
2368
Assert.Equal(-1, treeView.
ImageIndex
);
2384
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2389
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2407
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);
2412
Assert.Equal(expectedImageIndex, treeView.
ImageIndex
);