18 references to GetObjectForIUnknown
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (1)
64
return (IEnumFORMATETC)ComHelpers.
GetObjectForIUnknown
(nativeFormat);
System.Private.Windows.GdiPlus (2)
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
48
return (IPictureDisp.Interface)ComHelpers.
GetObjectForIUnknown
(picture);
63
return (IPicture.Interface)ComHelpers.
GetObjectForIUnknown
(picture);
System.Windows.Forms (4)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1836
return child.IsNull ? null : ComHelpers.
GetObjectForIUnknown
(child);
2243
return dispatch.IsNull ? null : ComHelpers.
GetObjectForIUnknown
(dispatch);
System\Windows\Forms\ActiveX\AxHost.cs (2)
2268
_instance = ComHelpers.
GetObjectForIUnknown
(unknown);
2290
_instance = ComHelpers.
GetObjectForIUnknown
(unknown);
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (3)
33
Assert.Equal(enclosingElement, ComHelpers.
GetObjectForIUnknown
(elementProviderScope));
231
UiaTextRange actual = (UiaTextRange)ComHelpers.
GetObjectForIUnknown
(rangeScope);
846
Assert.Equal(enclosingElement, ComHelpers.
GetObjectForIUnknown
(actual));
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1468
Assert.Equal(toolStrip.AccessibilityObject, ComHelpers.
GetObjectForIUnknown
(actual));
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (4)
165
Assert.Equal(comboBox.ChildEditAccessibleObject, ComHelpers.
GetObjectForIUnknown
(elementProvider));
166
UiaTextRange rangeObj = ComHelpers.
GetObjectForIUnknown
(range) as UiaTextRange;
961
UiaTextRange textRange = ComHelpers.
GetObjectForIUnknown
(range) as UiaTextRange;
1024
UiaTextRange textRange = ComHelpers.
GetObjectForIUnknown
(range) as UiaTextRange;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
84
Assert.Same(dropDownHolder.AccessibilityObject, ComHelpers.
GetObjectForIUnknown
(previousAccessibleObject));
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
831
UiaTextRange textRange = ComHelpers.
GetObjectForIUnknown
(range) as UiaTextRange;
873
UiaTextRange textRange = ComHelpers.
GetObjectForIUnknown
(range) as UiaTextRange;