91 instantiations of SubAxHost
System.Windows.Forms.Tests (91)
System\Windows\Forms\AxHostTests.cs (91)
29
using SubAxHost control =
new
(clsid);
123
using SubAxHost control =
new
(clsid, flags);
216
Assert.Throws<ArgumentNullException>("g", () => new
SubAxHost
(null));
217
Assert.Throws<ArgumentNullException>("g", () => new
SubAxHost
(null, 0));
225
Assert.Throws<FormatException>(() => new
SubAxHost
(clsid));
231
using SubAxHost control =
new
(EmptyClsidString);
267
using SubAxHost control =
new
(WebBrowserClsidString)
292
using SubAxHost control =
new
(EmptyClsidString)
307
using SubAxHost control =
new
(EmptyClsidString)
324
using SubAxHost control =
new
(EmptyClsidString)
341
using SubAxHost control =
new
(EmptyClsidString);
353
using SubAxHost control =
new
(EmptyClsidString)
371
using SubAxHost control =
new
(EmptyClsidString)
389
using SubAxHost control =
new
(EmptyClsidString)
421
using SubAxHost control =
new
(EmptyClsidString)
436
using SubAxHost control =
new
(EmptyClsidString)
451
using SubAxHost control =
new
(WebBrowserClsidString);
468
using SubAxHost control =
new
(EmptyClsidString);
498
using SubAxHost control =
new
(EmptyClsidString);
518
using SubAxHost control =
new
(EmptyClsidString)
537
using SubAxHost control =
new
(EmptyClsidString)
552
using SubAxHost control =
new
(EmptyClsidString)
567
using SubAxHost control =
new
(EmptyClsidString);
575
using SubAxHost control =
new
(EmptyClsidString)
610
using SubAxHost control =
new
(WebBrowserClsidString)
674
using SubAxHost control =
new
(WebBrowserClsidString)
738
using SubAxHost control =
new
(WebBrowserClsidString)
807
using SubAxHost control =
new
(WebBrowserClsidString);
884
using SubAxHost control =
new
(EmptyClsidString)
901
using SubAxHost control =
new
(WebBrowserClsidString);
929
using SubAxHost control =
new
(EmptyClsidString);
938
using SubAxHost control =
new
(EmptyClsidString);
947
using SubAxHost control =
new
(EmptyClsidString);
956
using SubAxHost control =
new
(EmptyClsidString);
965
using SubAxHost control =
new
(EmptyClsidString);
974
using SubAxHost control =
new
(EmptyClsidString);
983
using SubAxHost control =
new
(EmptyClsidString);
992
using SubAxHost control =
new
(EmptyClsidString);
1001
using SubAxHost control =
new
(EmptyClsidString);
1010
using SubAxHost control =
new
(EmptyClsidString);
1019
using SubAxHost control =
new
(EmptyClsidString);
1028
using SubAxHost control =
new
(EmptyClsidString);
1037
using SubAxHost control =
new
(EmptyClsidString);
1046
using SubAxHost control =
new
(EmptyClsidString);
1055
using SubAxHost control =
new
(EmptyClsidString);
1064
using SubAxHost control =
new
(EmptyClsidString);
1073
using SubAxHost control =
new
(EmptyClsidString);
1082
using SubAxHost control =
new
(EmptyClsidString);
1091
using SubAxHost control =
new
(EmptyClsidString);
1100
using SubAxHost control =
new
(EmptyClsidString);
1109
using SubAxHost control =
new
(EmptyClsidString);
1118
using SubAxHost control =
new
(EmptyClsidString);
1127
using SubAxHost control =
new
(EmptyClsidString);
1136
using SubAxHost control =
new
(EmptyClsidString);
1145
using SubAxHost control =
new
(EmptyClsidString);
1154
using SubAxHost control =
new
(EmptyClsidString);
1163
using SubAxHost control =
new
(EmptyClsidString);
1172
using SubAxHost control =
new
(EmptyClsidString);
1181
using SubAxHost control =
new
(EmptyClsidString);
1190
using SubAxHost control =
new
(EmptyClsidString);
1199
using SubAxHost control =
new
(EmptyClsidString);
1208
using SubAxHost control =
new
(EmptyClsidString);
1217
using SubAxHost control =
new
(EmptyClsidString);
1226
using SubAxHost control =
new
(EmptyClsidString);
1235
using SubAxHost control =
new
(EmptyClsidString);
1244
using SubAxHost control =
new
(EmptyClsidString);
1253
using SubAxHost control =
new
(EmptyClsidString);
1262
using SubAxHost control =
new
(EmptyClsidString);
1270
using SubAxHost control =
new
(EmptyClsidString);
1294
using SubAxHost control =
new
(WebBrowserClsidString);
1305
using SubAxHost control =
new
(WebBrowserClsidString)
1322
using SubAxHost control =
new
(WebBrowserClsidString);
1334
using SubAxHost control =
new
(EmptyClsidString);
1341
using SubAxHost control =
new
(EmptyClsidString);
1351
using SubAxHost control =
new
(WebBrowserClsidString)
1370
using SubAxHost control =
new
(WebBrowserClsidString);
1382
using SubAxHost control =
new
(EmptyClsidString);
1389
using SubAxHost control =
new
(EmptyClsidString);
1398
using SubAxHost control =
new
(EmptyClsidString);
1407
using SubAxHost control =
new
(EmptyClsidString);
1747
using SubAxHost control =
new
(EmptyClsidString);
1793
using SubAxHost control =
new
(WebBrowserClsidString)
1856
using SubAxHost control =
new
(WebBrowserClsidString)
1874
using SubAxHost control =
new
(WebBrowserClsidString);
2086
using SubAxHost control =
new
(WebBrowserClsidString)
2151
using SubAxHost control =
new
(WebBrowserClsidString)
2258
using SubAxHost control =
new
(EmptyClsidString);
2282
using SubAxHost control =
new
(EmptyClsidString);
2306
using SubAxHost control =
new
(EmptyClsidString);
3079
SubAxHost control =
new
(WebBrowserClsidString);
3091
using SubAxHost control =
new
(WebBrowserClsidString);
120 references to SubAxHost
System.Windows.Forms.Tests (120)
System\Windows\Forms\AxHostTests.cs (120)
29
using
SubAxHost
control = new(clsid);
123
using
SubAxHost
control = new(clsid, flags);
231
using
SubAxHost
control = new(EmptyClsidString);
267
using
SubAxHost
control = new(WebBrowserClsidString)
292
using
SubAxHost
control = new(EmptyClsidString)
307
using
SubAxHost
control = new(EmptyClsidString)
324
using
SubAxHost
control = new(EmptyClsidString)
341
using
SubAxHost
control = new(EmptyClsidString);
353
using
SubAxHost
control = new(EmptyClsidString)
371
using
SubAxHost
control = new(EmptyClsidString)
389
using
SubAxHost
control = new(EmptyClsidString)
421
using
SubAxHost
control = new(EmptyClsidString)
436
using
SubAxHost
control = new(EmptyClsidString)
451
using
SubAxHost
control = new(WebBrowserClsidString);
468
using
SubAxHost
control = new(EmptyClsidString);
498
using
SubAxHost
control = new(EmptyClsidString);
518
using
SubAxHost
control = new(EmptyClsidString)
537
using
SubAxHost
control = new(EmptyClsidString)
552
using
SubAxHost
control = new(EmptyClsidString)
567
using
SubAxHost
control = new(EmptyClsidString);
575
using
SubAxHost
control = new(EmptyClsidString)
610
using
SubAxHost
control = new(WebBrowserClsidString)
674
using
SubAxHost
control = new(WebBrowserClsidString)
738
using
SubAxHost
control = new(WebBrowserClsidString)
807
using
SubAxHost
control = new(WebBrowserClsidString);
884
using
SubAxHost
control = new(EmptyClsidString)
901
using
SubAxHost
control = new(WebBrowserClsidString);
929
using
SubAxHost
control = new(EmptyClsidString);
938
using
SubAxHost
control = new(EmptyClsidString);
947
using
SubAxHost
control = new(EmptyClsidString);
956
using
SubAxHost
control = new(EmptyClsidString);
965
using
SubAxHost
control = new(EmptyClsidString);
974
using
SubAxHost
control = new(EmptyClsidString);
983
using
SubAxHost
control = new(EmptyClsidString);
992
using
SubAxHost
control = new(EmptyClsidString);
1001
using
SubAxHost
control = new(EmptyClsidString);
1010
using
SubAxHost
control = new(EmptyClsidString);
1019
using
SubAxHost
control = new(EmptyClsidString);
1028
using
SubAxHost
control = new(EmptyClsidString);
1037
using
SubAxHost
control = new(EmptyClsidString);
1046
using
SubAxHost
control = new(EmptyClsidString);
1055
using
SubAxHost
control = new(EmptyClsidString);
1064
using
SubAxHost
control = new(EmptyClsidString);
1073
using
SubAxHost
control = new(EmptyClsidString);
1082
using
SubAxHost
control = new(EmptyClsidString);
1091
using
SubAxHost
control = new(EmptyClsidString);
1100
using
SubAxHost
control = new(EmptyClsidString);
1109
using
SubAxHost
control = new(EmptyClsidString);
1118
using
SubAxHost
control = new(EmptyClsidString);
1127
using
SubAxHost
control = new(EmptyClsidString);
1136
using
SubAxHost
control = new(EmptyClsidString);
1145
using
SubAxHost
control = new(EmptyClsidString);
1154
using
SubAxHost
control = new(EmptyClsidString);
1163
using
SubAxHost
control = new(EmptyClsidString);
1172
using
SubAxHost
control = new(EmptyClsidString);
1181
using
SubAxHost
control = new(EmptyClsidString);
1190
using
SubAxHost
control = new(EmptyClsidString);
1199
using
SubAxHost
control = new(EmptyClsidString);
1208
using
SubAxHost
control = new(EmptyClsidString);
1217
using
SubAxHost
control = new(EmptyClsidString);
1226
using
SubAxHost
control = new(EmptyClsidString);
1235
using
SubAxHost
control = new(EmptyClsidString);
1244
using
SubAxHost
control = new(EmptyClsidString);
1253
using
SubAxHost
control = new(EmptyClsidString);
1262
using
SubAxHost
control = new(EmptyClsidString);
1270
using
SubAxHost
control = new(EmptyClsidString);
1294
using
SubAxHost
control = new(WebBrowserClsidString);
1305
using
SubAxHost
control = new(WebBrowserClsidString)
1322
using
SubAxHost
control = new(WebBrowserClsidString);
1334
using
SubAxHost
control = new(EmptyClsidString);
1341
using
SubAxHost
control = new(EmptyClsidString);
1351
using
SubAxHost
control = new(WebBrowserClsidString)
1370
using
SubAxHost
control = new(WebBrowserClsidString);
1382
using
SubAxHost
control = new(EmptyClsidString);
1389
using
SubAxHost
control = new(EmptyClsidString);
1398
using
SubAxHost
control = new(EmptyClsidString);
1407
using
SubAxHost
control = new(EmptyClsidString);
1434
Assert.Null(
SubAxHost
.GetFontFromIFont(null));
1440
Assert.Throws<InvalidCastException>(() =>
SubAxHost
.GetFontFromIFont(new object()));
1447
object disp =
SubAxHost
.GetIFontDispFromFont(font);
1459
Font result =
SubAxHost
.GetFontFromIFont(iFont);
1465
result =
SubAxHost
.GetFontFromIFont((IFontDisp.Interface)disp);
1476
object disp =
SubAxHost
.GetIFontDispFromFont(font);
1488
Font result =
SubAxHost
.GetFontFromIFont(iFont);
1494
result =
SubAxHost
.GetFontFromIFont((IFontDisp.Interface)disp);
1510
Assert.Throws<ArgumentException>("font", () =>
SubAxHost
.GetIFontDispFromFont(font));
1516
Assert.Null(
SubAxHost
.GetIFontDispFromFont(null));
1523
IFont.Interface iFont = (IFont.Interface)
SubAxHost
.GetIFontFromFont(font);
1534
Font result =
SubAxHost
.GetFontFromIFont(iFont);
1545
IFont.Interface iFont = (IFont.Interface)
SubAxHost
.GetIFontFromFont(font);
1555
Font result =
SubAxHost
.GetFontFromIFont(iFont);
1571
Assert.Throws<ArgumentException>("font", () =>
SubAxHost
.GetIFontFromFont(font));
1577
Assert.Null(
SubAxHost
.GetIFontFromFont(null));
1584
IPicture.Interface iPicture = (IPicture.Interface)
SubAxHost
.GetIPictureFromCursor(original);
1601
Assert.Throws<InvalidCastException>(() =>
SubAxHost
.GetPictureFromIPicture(iPicture));
1609
object disp =
SubAxHost
.GetIPictureDispFromPicture(original);
1623
var result = Assert.IsType<Bitmap>(
SubAxHost
.GetPictureFromIPictureDisp(disp));
1633
object disp =
SubAxHost
.GetIPictureDispFromPicture(original);
1647
var result = Assert.IsType<Metafile>(
SubAxHost
.GetPictureFromIPictureDisp(disp));
1655
Assert.Throws<COMException>(() =>
SubAxHost
.GetIPictureDispFromPicture(original));
1661
Assert.Null(
SubAxHost
.GetIPictureDispFromPicture(null));
1669
IPicture.Interface iPicture = (IPicture.Interface)
SubAxHost
.GetIPictureFromPicture(original);
1688
var result = Assert.IsType<Bitmap>(
SubAxHost
.GetPictureFromIPicture(iPicture));
1698
IPicture.Interface iPicture = (IPicture.Interface)
SubAxHost
.GetIPictureFromPicture(original);
1715
var result = Assert.IsType<Metafile>(
SubAxHost
.GetPictureFromIPicture(iPicture));
1723
Assert.Throws<COMException>(() =>
SubAxHost
.GetIPictureFromPicture(original));
1729
Assert.Null(
SubAxHost
.GetIPictureFromPicture(null));
1735
Assert.Throws<InvalidCastException>(() =>
SubAxHost
.GetPictureFromIPicture(new object()));
1741
Assert.Null(
SubAxHost
.GetPictureFromIPicture(null));
1747
using
SubAxHost
control = new(EmptyClsidString);
1793
using
SubAxHost
control = new(WebBrowserClsidString)
1856
using
SubAxHost
control = new(WebBrowserClsidString)
1874
using
SubAxHost
control = new(WebBrowserClsidString);
2086
using
SubAxHost
control = new(WebBrowserClsidString)
2151
using
SubAxHost
control = new(WebBrowserClsidString)
2258
using
SubAxHost
control = new(EmptyClsidString);
2282
using
SubAxHost
control = new(EmptyClsidString);
2306
using
SubAxHost
control = new(EmptyClsidString);
3079
SubAxHost
control = new(WebBrowserClsidString);
3091
using
SubAxHost
control = new(WebBrowserClsidString);