Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITypeDescriptorContext::Instance Property

 

Gets the object that is connected with this type descriptor request.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

property Object^ Instance {
	Object^ get();
}

Property Value

Type: System::Object^

The object that invokes the method on the TypeDescriptor; otherwise, null if there is no object responsible for the call.

The Instance property gets the object that is invoking the ITypeDescriptorContext interface. For example, if a type converter is given a Color to convert, Instance returns the actual instance of the control that is using the Color. You can subsequently query the control for further information about its services and its Container.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft