53 writes to ImageIndex
System.Windows.Forms (10)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1720
ImageIndex
= imageIndex
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1064
ImageIndex
= ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
136
set => base.
ImageIndex
= value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (7)
936
_printToolStripButton.
ImageIndex
= 0;
937
_zoomToolStripSplitButton.
ImageIndex
= 1;
938
_onePageToolStripButton.
ImageIndex
= 2;
939
_twoPagesToolStripButton.
ImageIndex
= 3;
940
_threePagesToolStripButton.
ImageIndex
= 4;
941
_fourPagesToolStripButton.
ImageIndex
= 5;
942
_sixPagesToolStripButton.
ImageIndex
= 6;
System.Windows.Forms.Tests (43)
System\Windows\Forms\ToolStripControlHostTests.cs (2)
1276
ImageIndex
= value
1284
item.
ImageIndex
= value;
System\Windows\Forms\ToolStripItemTests.cs (41)
3702
ImageIndex
= 0,
3723
ImageIndex
= 1,
3770
ImageIndex
= imageIndex,
3827
ImageIndex
= 1
3870
ImageIndex
= 1
4110
ImageIndex
= 0,
4155
ImageIndex
= 0,
4387
ImageIndex
= value
4394
item.
ImageIndex
= value;
4410
ImageIndex
= value
4418
item.
ImageIndex
= value;
4434
ImageIndex
= value
4442
item.
ImageIndex
= value;
4473
item.
ImageIndex
= value;
4480
item.
ImageIndex
= value;
4522
item.
ImageIndex
= value;
4530
item.
ImageIndex
= value;
4574
item.
ImageIndex
= value;
4584
item.
ImageIndex
= value;
4616
item.
ImageIndex
= value;
4623
item.
ImageIndex
= value;
4658
item.
ImageIndex
= value;
4665
item.
ImageIndex
= value;
4701
item.
ImageIndex
= value;
4711
item.
ImageIndex
= value;
4730
Assert.Throws<ArgumentOutOfRangeException>("value", () => item.
ImageIndex
= -2);
4740
item.
ImageIndex
= -1;
4745
item.
ImageIndex
= 0;
4765
item.
ImageIndex
= -1;
4770
item.
ImageIndex
= 0;
4796
item.
ImageIndex
= 0;
4800
item.
ImageIndex
= 0;
4804
item.
ImageIndex
= -1;
4819
item.
ImageIndex
= -1;
4824
item.
ImageIndex
= 0;
4843
item.
ImageIndex
= -1;
4848
item.
ImageIndex
= 0;
4874
item.
ImageIndex
= 0;
4878
item.
ImageIndex
= 0;
4882
item.
ImageIndex
= -1;
4937
ImageIndex
= 1,
90 references to ImageIndex
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
135
get => base.
ImageIndex
;
System.Windows.Forms.Tests (89)
System\Windows\Forms\ToolStripButtonTests.cs (6)
61
Assert.Equal(-1, item.
ImageIndex
);
142
Assert.Equal(-1, item.
ImageIndex
);
229
Assert.Equal(-1, item.
ImageIndex
);
319
Assert.Equal(-1, item.
ImageIndex
);
407
Assert.Equal(-1, item.
ImageIndex
);
505
Assert.Equal(-1, item.
ImageIndex
);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
90
Assert.Equal(-1, item.
ImageIndex
);
1228
Assert.Equal(-1, item.
ImageIndex
);
1234
Assert.Equal(-1, item.
ImageIndex
);
1278
Assert.Equal(value, item.
ImageIndex
);
1285
Assert.Equal(value, item.
ImageIndex
);
1301
Assert.Equal(-1, item.
ImageIndex
);
1308
Assert.Equal(-1, item.
ImageIndex
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
61
Assert.Equal(-1, item.
ImageIndex
);
150
Assert.Equal(-1, item.
ImageIndex
);
249
Assert.Equal(-1, item.
ImageIndex
);
357
Assert.Equal(-1, item.
ImageIndex
);
System\Windows\Forms\ToolStripItemTests.cs (71)
60
Assert.Equal(-1, item.
ImageIndex
);
145
Assert.Equal(-1, item.
ImageIndex
);
240
Assert.Equal(-1, item.
ImageIndex
);
3801
Assert.Equal(-1, item.
ImageIndex
);
3806
Assert.Equal(-1, item.
ImageIndex
);
3832
Assert.Equal(expectedImageIndex, item.
ImageIndex
);
3837
Assert.Equal(expectedImageIndex, item.
ImageIndex
);
3853
Assert.Equal(-1, item.
ImageIndex
);
3858
Assert.Equal(-1, item.
ImageIndex
);
3875
Assert.Equal(expectedImageIndex, item.
ImageIndex
);
3880
Assert.Equal(expectedImageIndex, item.
ImageIndex
);
3922
Assert.Equal(-1, item.
ImageIndex
);
3929
Assert.Equal(-1, item.
ImageIndex
);
3974
Assert.Equal(-1, item.
ImageIndex
);
3984
Assert.Equal(-1, item.
ImageIndex
);
4015
Assert.Equal(-1, item.
ImageIndex
);
4022
Assert.Equal(-1, item.
ImageIndex
);
4057
Assert.Equal(-1, item.
ImageIndex
);
4067
Assert.Equal(-1, item.
ImageIndex
);
4389
Assert.Equal(value, item.
ImageIndex
);
4395
Assert.Equal(value, item.
ImageIndex
);
4412
Assert.Equal(value, item.
ImageIndex
);
4419
Assert.Equal(value, item.
ImageIndex
);
4436
Assert.Equal(value, item.
ImageIndex
);
4443
Assert.Equal(value, item.
ImageIndex
);
4474
Assert.Equal(value, item.
ImageIndex
);
4481
Assert.Equal(value, item.
ImageIndex
);
4523
Assert.Equal(expected, item.
ImageIndex
);
4531
Assert.Equal(expected, item.
ImageIndex
);
4575
Assert.Equal(value, item.
ImageIndex
);
4585
Assert.Equal(value, item.
ImageIndex
);
4617
Assert.Equal(value, item.
ImageIndex
);
4624
Assert.Equal(value, item.
ImageIndex
);
4659
Assert.Equal(value, item.
ImageIndex
);
4666
Assert.Equal(value, item.
ImageIndex
);
4702
Assert.Equal(value, item.
ImageIndex
);
4712
Assert.Equal(value, item.
ImageIndex
);
4736
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
ImageIndex
)];
4741
Assert.Equal(-1, item.
ImageIndex
);
4746
Assert.Equal(0, item.
ImageIndex
);
4750
Assert.Equal(0, item.
ImageIndex
);
4757
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
ImageIndex
)];
4766
Assert.Equal(-1, item.
ImageIndex
);
4771
Assert.Equal(0, item.
ImageIndex
);
4775
Assert.Equal(0, item.
ImageIndex
);
4782
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
ImageIndex
)];
4797
Assert.Equal(0, item.
ImageIndex
);
4801
Assert.Equal(0, item.
ImageIndex
);
4805
Assert.Equal(-1, item.
ImageIndex
);
4809
Assert.Equal(-1, item.
ImageIndex
);
4816
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
ImageIndex
)];
4820
Assert.Equal(-1, item.
ImageIndex
);
4825
Assert.Equal(0, item.
ImageIndex
);
4829
Assert.Equal(0, item.
ImageIndex
);
4836
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
ImageIndex
)];
4844
Assert.Equal(-1, item.
ImageIndex
);
4849
Assert.Equal(0, item.
ImageIndex
);
4853
Assert.Equal(0, item.
ImageIndex
);
4860
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
ImageIndex
)];
4875
Assert.Equal(0, item.
ImageIndex
);
4879
Assert.Equal(0, item.
ImageIndex
);
4883
Assert.Equal(-1, item.
ImageIndex
);
4887
Assert.Equal(-1, item.
ImageIndex
);
4900
Assert.Equal(-1, item.
ImageIndex
);
4906
Assert.Equal(-1, item.
ImageIndex
);
4921
Assert.Equal(-1, item.
ImageIndex
);
4927
Assert.Equal(-1, item.
ImageIndex
);
4941
Assert.Equal(-1, item.
ImageIndex
);
4947
Assert.Equal(-1, item.
ImageIndex
);
5026
Assert.Equal(-1, item.
ImageIndex
);
5034
Assert.Equal(-1, item.
ImageIndex
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
65
Assert.Equal(-1, item.
ImageIndex
);