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