IReferenceService::GetComponent Method (Object^)

 

Gets the component that contains the specified component.

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

IComponent^ GetComponent(
	Object^ reference
)

Parameters

reference
Type: System::Object^

The object to retrieve the parent component for.

Return Value

Type: System.ComponentModel::IComponent^

The base IComponent that contains the specified object, or null if no parent component exists.

.NET Framework
Available since 1.1
Return to top
Show: