49 references to TargetObject
System.Windows.Forms (49)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
114
UnsafeNativeMethods.IFont nativeFont = (UnsafeNativeMethods.IFont)pd.GetNativeValue(pd.
TargetObject
);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
85
string cat = GetCategoryFromObject(sender.
TargetObject
, sender.DISPID);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
41
Object target = sender.
TargetObject
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (9)
68
NativeMethods.IPerPropertyBrowsing target = sender.
TargetObject
as NativeMethods.IPerPropertyBrowsing;
84
if (sender.
TargetObject
is NativeMethods.IPerPropertyBrowsing) {
95
string displayString = GetDisplayString((NativeMethods.IPerPropertyBrowsing)sender.
TargetObject
, sender.DISPID, ref success);
107
if (sender.
TargetObject
is NativeMethods.IPerPropertyBrowsing) {
108
NativeMethods.IPerPropertyBrowsing ppb = (NativeMethods.IPerPropertyBrowsing)sender.
TargetObject
;
188
object curValue = itemsEnum.target.GetValue(itemsEnum.target.
TargetObject
);
191
string val = GetDisplayString((NativeMethods.IPerPropertyBrowsing)itemsEnum.target.
TargetObject
, itemsEnum.target.DISPID, ref success);
266
NativeMethods.IPerPropertyBrowsing ppb = (NativeMethods.IPerPropertyBrowsing)target.
TargetObject
;
356
string displayString = Com2IPerPropertyBrowsingHandler.GetDisplayString((NativeMethods.IPerPropertyBrowsing)target.
TargetObject
, target.DISPID, ref success);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (2)
69
NativeMethods.IProvidePropertyBuilder target = sender.
TargetObject
as NativeMethods.IProvidePropertyBuilder;
84
object target = sender.
TargetObject
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (29)
41
if (propDesc.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing) {
43
int hr = ((NativeMethods.IVsPerPropertyBrowsing)propDesc.
TargetObject
).DisplayChildProperties(propDesc.DISPID, ref pfHide);
75
NativeMethods.IVsPerPropertyBrowsing vsObj = sender.
TargetObject
as NativeMethods.IVsPerPropertyBrowsing;
97
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing){
98
NativeMethods.IVsPerPropertyBrowsing vsObj = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
125
Debug.Assert(sender.
TargetObject
== null || sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
129
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing) {
130
NativeMethods.IVsPerPropertyBrowsing target = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
138
Debug.Assert(sender.
TargetObject
== null || sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
146
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing){
147
NativeMethods.IVsPerPropertyBrowsing vsObj = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
156
Debug.Assert(sender.
TargetObject
== null || sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
164
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing){
165
NativeMethods.IVsPerPropertyBrowsing vsObj = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
182
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing){
186
NativeMethods.IVsPerPropertyBrowsing vsObj = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
200
Debug.Assert(sender.
TargetObject
== null || sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
204
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing) {
207
NativeMethods.IVsPerPropertyBrowsing target = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
216
Debug.Assert(sender.
TargetObject
== null || sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
220
if (sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing){
221
NativeMethods.IVsPerPropertyBrowsing vsObj = (NativeMethods.IVsPerPropertyBrowsing)sender.
TargetObject
;
232
Debug.Assert(sender.
TargetObject
== null || sender.
TargetObject
is NativeMethods.IVsPerPropertyBrowsing, "Object is not " + Interface.Name + "!");
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
61
object obj = propDesc.
TargetObject
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (4)
278
Object target = this.
TargetObject
;
688
if (component == this.
TargetObject
) {
969
Object value = GetValue(
TargetObject
);
1178
if (component == this.
TargetObject
) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
57
instance = propDesc.
TargetObject
;