Share via


PropertyGridObject.ICustomTypeDescriptor.GetDefaultProperty Method

Definition

Returns the default property for the property grid.

 virtual System::ComponentModel::PropertyDescriptor ^ System.ComponentModel.ICustomTypeDescriptor.GetDefaultProperty() = System::ComponentModel::ICustomTypeDescriptor::GetDefaultProperty;
System.ComponentModel.PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ();
Function GetDefaultProperty () As PropertyDescriptor Implements ICustomTypeDescriptor.GetDefaultProperty

Returns

A PropertyDescriptor object that contains the default property, or null if there are no properties.

Implements

Examples

The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetDefaultProperty%2A> method.

PropertyDescriptor MyGetDefaultProperty() {
    return TypeDescriptor.GetDefaultProperty(this, true);
} 

Applies to