53 references to GetOcx
System.Windows.Forms (8)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
305controls.Add(hostControl.GetOcx()!); 590oleControls.Add(hostControl.GetOcx()!);
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
84*ppvObj = ComHelpers.GetComPointer<IOleObject>(hostControl.GetOcx());
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
281if ((GetFlag(FlagUpdatedEditorAndConverter) && !force) || _owner.GetOcx() is null)
System\Windows\Forms\ActiveX\AxHost.cs (3)
806if (GetOcx() is not null) 839if (GetOcx() is IOleControl.Interface oleCtl) 932if (GetOcx() is not null)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
58object? nativeObject = _host.GetOcx();
System.Windows.Forms.Tests (45)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (20)
163Assert.NotNull(control.GetOcx()); 411Assert.NotNull(control.GetOcx()); 434Assert.NotNull(control.GetOcx()); 460Assert.NotNull(control.GetOcx()); 563Assert.NotNull(control.GetOcx()); 599Assert.NotNull(control.GetOcx()); 630Assert.NotNull(control.GetOcx()); 678Assert.NotNull(control.GetOcx()); 726Assert.NotNull(control.GetOcx()); 844Assert.NotNull(control.GetOcx()); 875Assert.NotNull(control.GetOcx()); 904Assert.NotNull(control.GetOcx()); 936Assert.NotNull(control.GetOcx()); 965Assert.NotNull(control.GetOcx()); 1008Assert.NotNull(control.GetOcx()); 1052Assert.NotNull(control.GetOcx()); 1104Assert.NotNull(control.GetOcx()); 1152Assert.NotNull(control.GetOcx()); 1200Assert.NotNull(control.GetOcx()); 1254Assert.NotNull(control.GetOcx());
System\Windows\Forms\AxHostTests.cs (25)
616object ocx = control.GetOcx(); 618Assert.Same(ocx, control.GetOcx()); 624Assert.Same(ocx, control.GetOcx()); 646Assert.Same(ocx, control.GetOcx()); 652Assert.Same(ocx, control.GetOcx()); 680Assert.Null(control.GetOcx()); 686Assert.Null(control.GetOcx()); 708object ocx = control.GetOcx(); 710Assert.Same(ocx, control.GetOcx()); 716Assert.Same(ocx, control.GetOcx()); 744Assert.Null(control.GetOcx()); 750Assert.Null(control.GetOcx()); 772Assert.Null(control.GetOcx()); 778Assert.Null(control.GetOcx()); 815object ocx = control.GetOcx(); 824Assert.Same(ocx, control.GetOcx()); 833Assert.Same(ocx, control.GetOcx()); 861Assert.Same(ocx, control.GetOcx()); 870Assert.Same(ocx, control.GetOcx()); 1375object ocx = control.GetOcx(); 1408Assert.Null(control.GetOcx()); 1423object ocx = control.GetOcx(); 1749Assert.Null(control.GetOcx()); 1753Assert.Null(control.GetOcx()); 3081using var ocx = ComHelpers.GetComScope<IUnknown>(control.GetOcx());