10 types derived from AxHost
System.Windows.Forms.Tests (10)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1390
private class CustomAxHost :
AxHost
System\Windows\Forms\AxHostTests.cs (4)
3119
private class CustomAxHost :
AxHost
3132
private class InvalidSelectionStyleAxHost :
AxHost
3145
private class ValidSelectionStyleAxHost :
AxHost
3158
private class SubAxHost :
AxHost
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
1097
private class SubAxHost :
AxHost
System\Windows\Forms\ControlTests.Properties.cs (1)
13801
private class SubAxHost :
AxHost
System\Windows\Forms\DynamicAxHost.cs (1)
13
public unsafe class DynamicAxHost :
AxHost
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5055
private class SubAxHost :
AxHost
System\Windows\Forms\ToolStripTests.cs (1)
7461
private class SubAxHost :
AxHost
103 references to AxHost
System.Windows.Forms (52)
System\Windows\Forms\ActiveX\AxHost.AxComponentEditor.cs (1)
18
if (obj is
AxHost
host)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (23)
28
private
AxHost
? _siteUIActive;
29
private
AxHost
? _siteActive;
31
private readonly HashSet<
AxHost
> _containerCache = [];
35
private
AxHost
? _controlInEditMode;
60
foreach (
AxHost
control in _containerCache)
125
internal void AddControl(
AxHost
control)
150
internal void RemoveControl(
AxHost
control)
303
if (control is
AxHost
hostControl && flags.HasFlag(OLECONTF.OLECONTF_EMBEDDINGS))
343
foreach (
AxHost
control in _containerCache)
394
private bool RegisterControl(
AxHost
control)
419
if (sender == _associatedContainer && e.Component is
AxHost
control)
427
if (control is
AxHost
axHost)
447
internal void OnInPlaceDeactivate(
AxHost
site)
464
internal void OnUIDeactivate(
AxHost
site)
474
internal void OnUIActivate(
AxHost
site)
483
AxHost
tempSite = _siteUIActive;
509
internal void ControlCreated(
AxHost
invoker)
534
List<
AxHost
> hostControls = [];
537
if (control is
AxHost
hostControl)
543
foreach (
AxHost
hostControl in hostControls)
588
if (control is
AxHost
hostControl)
627
internal void OnExitEditMode(
AxHost
ctl)
667
AxHost
? host = null;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
81
if (GetControl() is
AxHost
hostControl)
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (2)
19
private readonly
AxHost
_owner;
26
AxHost
owner,
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
17
internal
AxHost
_owner;
31
internal AxPropertyDescriptor(PropertyDescriptor baseDescriptor,
AxHost
owner) : base(baseDescriptor)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
31
private readonly
AxHost
_host;
34
internal OleInterfaces(
AxHost
host) => _host = host.OrThrowIfNull();
46
internal
AxHost
GetAxHost() => _host;
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
39
internal State(MemoryStream memoryStream, StorageType storageType,
AxHost
control)
61
internal State(
AxHost
control)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
128
private
AxHost
.ConnectionPointCookie[]? _connectionPointCookies;
4076
_connectionPointCookies = new
AxHost
.ConnectionPointCookie[_selectedObjects.Length];
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
26
private
AxHost
.ConnectionPointCookie? _cookie;
69
_cookie = new
AxHost
.ConnectionPointCookie(
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
47
private
AxHost
.ConnectionPointCookie? _cookie; // To hook up events from the native HtmlElement
93
_cookie = new
AxHost
.ConnectionPointCookie(
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (2)
27
private
AxHost
.ConnectionPointCookie? _cookie;
60
_cookie = new
AxHost
.ConnectionPointCookie(
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
31
private
AxHost
.ConnectionPointCookie? _cookie; // To hook up events from the native WebBrowser
1163
_cookie = new
AxHost
.ConnectionPointCookie(ax, _webBrowserEvent, typeof(SHDocVw.DWebBrowserEvents2));
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
57
*ppenum = ComHelpers.GetComPointer<IEnumUnknown>(new
AxHost
.EnumUnknown(temp));
62
*ppenum = ComHelpers.GetComPointer<IEnumUnknown>(new
AxHost
.EnumUnknown(null));
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
33
private
AxHost
.ConnectionPointCookie? _connectionPoint;
383
_connectionPoint = new
AxHost
.ConnectionPointCookie(nativeObject, this, typeof(IPropertyNotifySink.Interface));
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
578
private void AxContainerFormCreated() => Properties.GetValueOrDefault<
AxHost
.AxContainer>(s_propAxContainer)?.FormCreated();
585
internal
AxHost
.AxContainer CreateAxContainer()
587
if (!Properties.TryGetValue(s_propAxContainer, out
AxHost
.AxContainer? container))
589
container = Properties.AddValue(s_propAxContainer, new
AxHost
.AxContainer(this));
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (5)
23
public AxToolboxItem(string clsid) : base(typeof(
AxHost
))
195
if (!(typeof(
AxHost
).IsAssignableFrom(t)))
200
object[] attrs = t.GetCustomAttributes(typeof(
AxHost
.ClsidAttribute), false);
203
AxHost
.ClsidAttribute guid = (
AxHost
.ClsidAttribute)attrs[0];
System.Windows.Forms.Design.Tests (7)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (7)
605
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
AxHost
.State));
607
using var scope = CustomConverter.RegisterConverter(typeof(
AxHost
.State), new
AxHost
.StateConverter());
608
converter = TypeDescriptor.GetConverter(typeof(
AxHost
.State));
609
Assert.Equal(typeof(
AxHost
.StateConverter), converter.GetType());
639
AxHost
.State state = Assert.IsType<
AxHost
.State>(converter.ConvertFrom(resourceByte));
System.Windows.Forms.Tests (38)
SerializableAttributeTests.cs (1)
21
{ typeof(
AxHost
.State).FullName },
SerializableTypesTests.cs (6)
23
AxHost
.State state;
33
state = new
AxHost
.State(stream, 1, true, licenseKey);
44
AxHost
.State result = BinarySerialization.EnsureDeserialize<
AxHost
.State>(blob);
50
Assert.Equal(
AxHost
.StorageType.StreamInit, result.Type);
51
Assert.Equal(
AxHost
.StorageType.StreamInit, state.Type);
System\Resources\ResXResourceReaderTests.cs (1)
31
Assert.Equal(typeof(
AxHost
.State), value.GetType());
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (7)
23
var cookie = new
AxHost
.ConnectionPointCookie(source, sink, eventType);
37
Assert.Throws<InvalidCastException>(() => new
AxHost
.ConnectionPointCookie(source, null, null));
38
Assert.Throws<InvalidCastException>(() => new
AxHost
.ConnectionPointCookie(source, new object(), typeof(int)));
46
Assert.Throws<NullReferenceException>(() => new
AxHost
.ConnectionPointCookie(source, null, null));
58
Assert.Throws<InvalidCastException>(() => new
AxHost
.ConnectionPointCookie(source, null, eventInterface));
74
Assert.Throws<InvalidCastException>(() => new
AxHost
.ConnectionPointCookie(source, sink, eventInterface));
84
var cookie = new
AxHost
.ConnectionPointCookie(source, sink, eventType);
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (5)
16
AxHost
.PropertyBagStream bag = new();
30
AxHost
.PropertyBagStream newBag = new(stream);
47
AxHost
.PropertyBagStream bag = new();
67
AxHost
.PropertyBagStream bag = new();
81
IPropertyBag.Interface newBag = new
AxHost
.PropertyBagStream(stream);
System\Windows\Forms\AxHostTests.cs (17)
2496
Assert.Equal(nameof(
AxHost
.Enter), eventDescriptor.Name);
2501
Assert.Equal(nameof(
AxHost
.Enter), eventDescriptor.Name);
2519
Assert.Equal(nameof(
AxHost
.Enter), eventDescriptor.Name);
2527
Assert.Equal(nameof(
AxHost
.Enter), eventDescriptor.Name);
2540
Assert.Equal(nameof(
AxHost
.Text), propertyDescriptor.Name);
2545
Assert.Equal(nameof(
AxHost
.Text), propertyDescriptor.Name);
2563
Assert.Equal(nameof(
AxHost
.Text), propertyDescriptor.Name);
2571
Assert.Equal(nameof(
AxHost
.Text), propertyDescriptor.Name);
3095
AxHost
.ConnectionPointCookie cookie = site.TestAccessor().Dynamic._connectionPoint;
3226
public static new Font GetFontFromIFont(object font) =>
AxHost
.GetFontFromIFont(font);
3228
public static new object GetIFontDispFromFont(Font font) =>
AxHost
.GetIFontDispFromFont(font);
3230
public static new object GetIFontFromFont(Font font) =>
AxHost
.GetIFontFromFont(font);
3232
public static new object GetIPictureFromCursor(Cursor cursor) =>
AxHost
.GetIPictureFromCursor(cursor);
3234
public static new object GetIPictureDispFromPicture(Image image) =>
AxHost
.GetIPictureDispFromPicture(image);
3236
public static new object GetIPictureFromPicture(Image image) =>
AxHost
.GetIPictureFromPicture(image);
3238
public static new Image GetPictureFromIPicture(object picture) =>
AxHost
.GetPictureFromIPicture(picture);
3240
public static new Image GetPictureFromIPictureDisp(object picture) =>
AxHost
.GetPictureFromIPictureDisp(picture);
System\Windows\Forms\DynamicAxHost.cs (1)
11
/// Custom <see cref="
AxHost
"/> that directly uses a <see cref="ComClassFactory"/>.
WinFormsControlsTest (1)
MediaPlayer.Designer.cs (1)
47
this.axWindowsMediaPlayer1.OcxState = ((System.Windows.Forms.
AxHost
.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));