57 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) 664AxHost? 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)
31private AxHost _host; 34internal OleInterfaces(AxHost host) => _host = host.OrThrowIfNull(); 49internal 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)
130private AxHost.ConnectionPointCookie[]? _connectionPointCookies; 4062_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 1162_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)
33private AxHost.ConnectionPointCookie? _connectionPoint; 383_connectionPoint = new AxHost.ConnectionPointCookie(nativeObject, this, typeof(IPropertyNotifySink.Interface));
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
571private void AxContainerFormCreated() => Properties.GetValueOrDefault<AxHost.AxContainer>(s_propAxContainer)?.FormCreated(); 578internal AxHost.AxContainer CreateAxContainer() 580if (!Properties.TryGetValue(s_propAxContainer, out AxHost.AxContainer? container)) 582container = Properties.AddValue(s_propAxContainer, new AxHost.AxContainer(this));
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (5)
23public AxToolboxItem(string clsid) : base(typeof(AxHost)) 194if (!(typeof(AxHost).IsAssignableFrom(t))) 199object[] attrs = t.GetCustomAttributes(typeof(AxHost.ClsidAttribute), false); 202AxHost.ClsidAttribute guid = (AxHost.ClsidAttribute)attrs[0];