43 references to IDispatch
System.Windows.Forms (43)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (4)
35
return typeof(UnsafeNativeMethods.
IDispatch
);
161
if (Marshal.IsComObject(component) && component is UnsafeNativeMethods.
IDispatch
) {
162
UnsafeNativeMethods.
IDispatch
pDisp = (UnsafeNativeMethods.
IDispatch
)component;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
75
if (typeof(UnsafeNativeMethods.
IDispatch
).IsAssignableFrom(sender.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
76
if (typeof(UnsafeNativeMethods.
IDispatch
).IsAssignableFrom(sender.PropertyType)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
117
if (typeof(UnsafeNativeMethods.
IDispatch
).IsAssignableFrom(sender.PropertyType) && sender.CanShow){
185
if (sender.CanShow && typeof(UnsafeNativeMethods.
IDispatch
).IsAssignableFrom(sender.PropertyType)){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (10)
214
if (this.canShow && (propType == typeof(Object) || (valueConverter == null && propType == typeof(UnsafeNativeMethods.
IDispatch
)))) {
369
return typeof(UnsafeNativeMethods.
IDispatch
);
763
if (!typeof(UnsafeNativeMethods.
IDispatch
).IsAssignableFrom(this.PropertyType)) {
870
if (component == null || !Marshal.IsComObject(component) || !(component is UnsafeNativeMethods.
IDispatch
))
873
UnsafeNativeMethods.
IDispatch
pDisp = (UnsafeNativeMethods.
IDispatch
)component;
1218
if (owner == null || !Marshal.IsComObject(owner) || !(owner is UnsafeNativeMethods.
IDispatch
)) {
1231
UnsafeNativeMethods.
IDispatch
pDisp = (UnsafeNativeMethods.
IDispatch
)owner;
1279
g = typeof(UnsafeNativeMethods.
IDispatch
).GUID;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
95
if (obj is UnsafeNativeMethods.
IDispatch
) {
96
UnsafeNativeMethods.
IDispatch
iDispatch = (UnsafeNativeMethods.
IDispatch
)obj;
155
public static int GetNameDispId(UnsafeNativeMethods.
IDispatch
obj){
444
int nameDispID = GetNameDispId((UnsafeNativeMethods.
IDispatch
)obj);
984
return typeof(UnsafeNativeMethods.
IDispatch
);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (10)
139
if (!(component is UnsafeNativeMethods.
IDispatch
)) {
143
int dispid = Com2TypeInfoProcessor.GetNameDispId((UnsafeNativeMethods.
IDispatch
)component);
157
if (!(component is UnsafeNativeMethods.
IDispatch
)) {
161
UnsafeNativeMethods.
IDispatch
iDispatch = (UnsafeNativeMethods.
IDispatch
)component;
180
if (!(component is UnsafeNativeMethods.
IDispatch
)) {
195
if (!(component is UnsafeNativeMethods.
IDispatch
)) {
198
UnsafeNativeMethods.
IDispatch
iDispatch = (UnsafeNativeMethods.
IDispatch
)component;
243
return dispid == Com2TypeInfoProcessor.GetNameDispId((UnsafeNativeMethods.
IDispatch
)obj);
winforms\Managed\System\WinForms\Control.cs (3)
16823
if (clientSite is UnsafeNativeMethods.
IDispatch
) {
16826
UnsafeNativeMethods.
IDispatch
disp = (UnsafeNativeMethods.
IDispatch
)clientSite;
winforms\Managed\System\WinForms\HtmlDocument.cs (2)
554
UnsafeNativeMethods.
IDispatch
scriptObject = this.NativeHtmlDocument2.GetScript() as UnsafeNativeMethods.
IDispatch
;
winforms\Managed\System\WinForms\HtmlElement.cs (2)
603
UnsafeNativeMethods.
IDispatch
scriptObject = this.NativeHtmlElement as UnsafeNativeMethods.
IDispatch
;
winforms\Managed\System\WinForms\NativeMethods.cs (2)
4369
else if (t == typeof(object) || t == typeof(UnsafeNativeMethods.
IDispatch
) || t.IsCOMObject) {
4370
v.vt = (t == typeof(UnsafeNativeMethods.
IDispatch
) ? (short)tagVT.VT_DISPATCH : (short)tagVT.VT_UNKNOWN);