PropertyGridObject.ICustomTypeDescriptor.GetPropertyOwner Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A PropertyDescriptor object.
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.