Share via


PropertyGridObject.ICustomTypeDescriptor.GetPropertyOwner Method

Definition

Returns the object that contains the property grid.

 virtual System::Object ^ System.ComponentModel.ICustomTypeDescriptor.GetPropertyOwner(System::ComponentModel::PropertyDescriptor ^ pd) = System::ComponentModel::ICustomTypeDescriptor::GetPropertyOwner;
object ICustomTypeDescriptor.GetPropertyOwner (System.ComponentModel.PropertyDescriptor pd);
Function GetPropertyOwner (pd As PropertyDescriptor) As Object Implements ICustomTypeDescriptor.GetPropertyOwner

Parameters

Returns

A Object that represents the owner of the property grid.

Implements

Examples

The following example duplicates the ICustomTypeDescriptor.GetPropertyOwner method.

object MyGetPropertyOwner(PropertyDescriptor pd) {
    return this;
} 

Remarks

The pd parameter is not used.

Applies to