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