13 writes to ImageKey
System.Windows.Forms.Tests (13)
System\Windows\Forms\ButtonBaseTests.cs (13)
1445
ImageKey
= "ImageKey"
2106
ImageKey
= "ImageKey",
2220
ImageKey
= value
2227
control.
ImageKey
= value;
2242
control.
ImageKey
= ImageList.Indexer.DefaultKey;
2258
ImageKey
= value
2265
control.
ImageKey
= value;
2281
control.
ImageKey
= value;
2287
control.
ImageKey
= value;
2312
control.
ImageKey
= value;
2318
control.
ImageKey
= value;
2339
control.
ImageKey
= value;
2348
control.
ImageKey
= value;
38 references to ImageKey
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
447
/// <inheritdoc cref="
ImageKey
"/>
486
/// The <see cref="
ImageKey
"/> property specifies the image from the image list to display on the control.
489
/// <see cref="
ImageKey
"/> and <see cref="ImageIndex"/> are mutually exclusive, meaning if one is set, the other
490
/// is set to an invalid value and ignored. If you set the <see cref="
ImageKey
"/> property, the
492
/// <see cref="ImageIndex"/> property, the <see cref="
ImageKey
"/> is automatically set to an empty string ("").
System.Windows.Forms.Tests (33)
System\Windows\Forms\ButtonBaseTests.cs (30)
76
Assert.Empty(control.
ImageKey
);
1426
Assert.Empty(control.
ImageKey
);
1434
Assert.Empty(control.
ImageKey
);
1450
Assert.Equal("ImageKey", control.
ImageKey
);
1458
Assert.Equal(ImageList.Indexer.DefaultKey, control.
ImageKey
);
1475
Assert.Empty(control.
ImageKey
);
1484
Assert.Empty(control.
ImageKey
);
2064
Assert.Empty(control.
ImageKey
);
2070
Assert.Empty(control.
ImageKey
);
2085
Assert.Empty(control.
ImageKey
);
2092
Assert.Empty(control.
ImageKey
);
2110
Assert.Equal(ImageList.Indexer.DefaultKey, control.
ImageKey
);
2116
Assert.Equal(ImageList.Indexer.DefaultKey, control.
ImageKey
);
2134
Assert.Empty(control.
ImageKey
);
2140
Assert.Empty(control.
ImageKey
);
2163
Assert.Empty(control.
ImageKey
);
2169
Assert.Empty(control.
ImageKey
);
2190
Assert.Empty(control.
ImageKey
);
2199
Assert.Empty(control.
ImageKey
);
2222
Assert.Equal(expected, control.
ImageKey
);
2228
Assert.Equal(expected, control.
ImageKey
);
2243
Assert.Equal(ImageList.Indexer.DefaultKey, control.
ImageKey
);
2260
Assert.Equal(expectedImageKey, control.
ImageKey
);
2266
Assert.Equal(expectedImageKey, control.
ImageKey
);
2282
Assert.Equal(expected, control.
ImageKey
);
2288
Assert.Equal(expected, control.
ImageKey
);
2313
Assert.Equal(expected, control.
ImageKey
);
2319
Assert.Equal(expected, control.
ImageKey
);
2340
Assert.Equal(expected, control.
ImageKey
);
2349
Assert.Equal(expected, control.
ImageKey
);
System\Windows\Forms\ButtonTests.cs (1)
79
Assert.Empty(control.
ImageKey
);
System\Windows\Forms\CheckBoxTests.cs (1)
80
Assert.Empty(control.
ImageKey
);
System\Windows\Forms\RadioButtonTests.cs (1)
79
Assert.Empty(control.
ImageKey
);