10 types derived from AxHost
System.Windows.Forms.Tests (10)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1390private class CustomAxHost : AxHost
System\Windows\Forms\AxHostTests.cs (4)
3095private class CustomAxHost : AxHost 3108private class InvalidSelectionStyleAxHost : AxHost 3121private class ValidSelectionStyleAxHost : AxHost 3134private class SubAxHost : AxHost
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
1097private class SubAxHost : AxHost
System\Windows\Forms\ControlTests.Properties.cs (1)
13804private class SubAxHost : AxHost
System\Windows\Forms\DynamicAxHost.cs (1)
13public unsafe class DynamicAxHost : AxHost
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5055private class SubAxHost : AxHost
System\Windows\Forms\ToolStripTests.cs (1)
7461private class SubAxHost : AxHost
102 references to AxHost
System.Windows.Forms (52)
System\Windows\Forms\ActiveX\AxHost.AxComponentEditor.cs (1)
18if (obj is AxHost host)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (23)
28private AxHost? _siteUIActive; 29private AxHost? _siteActive; 31private readonly HashSet<AxHost> _containerCache = []; 35private AxHost? _controlInEditMode; 60foreach (AxHost control in _containerCache) 125internal void AddControl(AxHost control) 150internal void RemoveControl(AxHost control) 303if (control is AxHost hostControl && flags.HasFlag(OLECONTF.OLECONTF_EMBEDDINGS)) 343foreach (AxHost control in _containerCache) 394private bool RegisterControl(AxHost control) 419if (sender == _associatedContainer && e.Component is AxHost control) 427if (control is AxHost axHost) 447internal void OnInPlaceDeactivate(AxHost site) 464internal void OnUIDeactivate(AxHost site) 474internal void OnUIActivate(AxHost site) 483AxHost tempSite = _siteUIActive; 509internal void ControlCreated(AxHost invoker) 534List<AxHost> hostControls = []; 537if (control is AxHost hostControl) 543foreach (AxHost hostControl in hostControls) 588if (control is AxHost hostControl) 627internal void OnExitEditMode(AxHost ctl) 667AxHost? host = null;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
81if (GetControl() is AxHost hostControl)
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (2)
19private readonly AxHost _owner; 26AxHost owner,
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
17internal AxHost _owner; 31internal AxPropertyDescriptor(PropertyDescriptor baseDescriptor, AxHost owner) : base(baseDescriptor)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
32private readonly AxHost _host; 35internal OleInterfaces(AxHost host) => _host = host.OrThrowIfNull(); 47internal AxHost GetAxHost() => _host;
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
39internal State(MemoryStream memoryStream, StorageType storageType, AxHost control) 61internal State(AxHost control)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
128private AxHost.ConnectionPointCookie[]? _connectionPointCookies; 4076_connectionPointCookies = new AxHost.ConnectionPointCookie[_selectedObjects.Length];
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
26private AxHost.ConnectionPointCookie? _cookie; 69_cookie = new AxHost.ConnectionPointCookie(
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
47private 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)
27private AxHost.ConnectionPointCookie? _cookie; 60_cookie = new AxHost.ConnectionPointCookie(
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
31private 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)
34private AxHost.ConnectionPointCookie? _connectionPoint; 384_connectionPoint = new AxHost.ConnectionPointCookie(nativeObject, this, typeof(IPropertyNotifySink));
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
580((AxHost.AxContainer?)Properties.GetObject(s_propAxContainer))?.FormCreated(); 588internal AxHost.AxContainer CreateAxContainer() 593aXContainer = new AxHost.AxContainer(this); 597return (AxHost.AxContainer)aXContainer;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (5)
23public AxToolboxItem(string clsid) : base(typeof(AxHost)) 195if (!(typeof(AxHost).IsAssignableFrom(t))) 200object[] attrs = t.GetCustomAttributes(typeof(AxHost.ClsidAttribute), false); 203AxHost.ClsidAttribute guid = (AxHost.ClsidAttribute)attrs[0];
System.Windows.Forms.Design.Tests (7)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (7)
605TypeConverter converter = TypeDescriptor.GetConverter(typeof(AxHost.State)); 607using var scope = CustomConverter.RegisterConverter(typeof(AxHost.State), new AxHost.StateConverter()); 608converter = TypeDescriptor.GetConverter(typeof(AxHost.State)); 609Assert.Equal(typeof(AxHost.StateConverter), converter.GetType()); 639AxHost.State state = Assert.IsType<AxHost.State>(converter.ConvertFrom(resourceByte));
System.Windows.Forms.Tests (37)
SerializableAttributeTests.cs (1)
17{ typeof(AxHost.State).FullName },
SerializableTypesTests.cs (6)
23AxHost.State state; 33state = new AxHost.State(stream, 1, true, licenseKey); 44AxHost.State result = BinarySerialization.EnsureDeserialize<AxHost.State>(blob); 50Assert.Equal(AxHost.StorageType.StreamInit, result.Type); 51Assert.Equal(AxHost.StorageType.StreamInit, state.Type);
System\Resources\ResXResourceReaderTests.cs (1)
31Assert.Equal(typeof(AxHost.State), value.GetType());
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (7)
23var cookie = new AxHost.ConnectionPointCookie(source, sink, eventType); 37Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, null, null)); 38Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, new object(), typeof(int))); 46Assert.Throws<NullReferenceException>(() => new AxHost.ConnectionPointCookie(source, null, null)); 58Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, null, eventInterface)); 74Assert.Throws<InvalidCastException>(() => new AxHost.ConnectionPointCookie(source, sink, eventInterface)); 84var cookie = new AxHost.ConnectionPointCookie(source, sink, eventType);
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (5)
16AxHost.PropertyBagStream bag = new(); 30AxHost.PropertyBagStream newBag = new(stream); 47AxHost.PropertyBagStream bag = new(); 67AxHost.PropertyBagStream bag = new(); 81IPropertyBag.Interface newBag = new AxHost.PropertyBagStream(stream);
System\Windows\Forms\AxHostTests.cs (16)
2496Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2501Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2519Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2527Assert.Equal(nameof(AxHost.Enter), eventDescriptor.Name); 2540Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 2545Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 2563Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 2571Assert.Equal(nameof(AxHost.Text), propertyDescriptor.Name); 3202public static new Font GetFontFromIFont(object font) => AxHost.GetFontFromIFont(font); 3204public static new object GetIFontDispFromFont(Font font) => AxHost.GetIFontDispFromFont(font); 3206public static new object GetIFontFromFont(Font font) => AxHost.GetIFontFromFont(font); 3208public static new object GetIPictureFromCursor(Cursor cursor) => AxHost.GetIPictureFromCursor(cursor); 3210public static new object GetIPictureDispFromPicture(Image image) => AxHost.GetIPictureDispFromPicture(image); 3212public static new object GetIPictureFromPicture(Image image) => AxHost.GetIPictureFromPicture(image); 3214public static new Image GetPictureFromIPicture(object picture) => AxHost.GetPictureFromIPicture(picture); 3216public 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)
47this.axWindowsMediaPlayer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));