PropertyGridObject.ICustomTypeDescriptor.GetDefaultProperty 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 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);
}