35 references to TargetObject
System.Windows.Forms (35)
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
79
using VARIANT nativeValue = property.GetNativeValue(property.
TargetObject
);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
70
if (GetCategoryFromObject(sender.
TargetObject
, sender.DISPID) is string category && category.Length > 0)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
36
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (2)
64
using var ppb = ComHelpers.TryGetComScope<IPerPropertyBrowsing>(Target.
TargetObject
, out HRESULT hr);
169
using var propertyBrowsing = ComHelpers.TryGetComScope<IPerPropertyBrowsing>(Target.
TargetObject
, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyEnumConverter.cs (2)
26
object? currentValue = _itemsEnum.Target.GetValue(_itemsEnum.Target.
TargetObject
);
30
_itemsEnum.Target.
TargetObject
,
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (3)
61
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
77
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
98
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (2)
54
using var propertyBuilder = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
73
using var propertyBuilder = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (17)
18
using var browsing = TryGetComScope(property.
TargetObject
, out HRESULT hr);
56
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
59
Debug.Assert(sender.
TargetObject
is null);
73
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
76
Debug.Assert(sender.
TargetObject
is null);
110
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
113
Debug.Assert(sender.
TargetObject
is null);
127
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
130
Debug.Assert(sender.
TargetObject
is null);
145
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
148
Debug.Assert(sender.
TargetObject
is null);
163
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
166
Debug.Assert(sender.
TargetObject
is null);
184
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
187
Debug.Assert(sender.
TargetObject
is null);
202
using var propertyBrowsing = TryGetComScope(sender.
TargetObject
, out HRESULT hr);
205
Debug.Assert(sender.
TargetObject
is null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
43
object? target = _propDesc.
TargetObject
;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (4)
212
using var dispatch = ComHelpers.TryGetComScope<IDispatch>(
TargetObject
, out HRESULT hr);
456
if (component ==
TargetObject
)
698
object? value = GetValue(
TargetObject
);
798
if (component ==
TargetObject
)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
41
instance = _propertyDescriptor.
TargetObject
;