PropertyGridObject.ICustomTypeDescriptor.GetEditor(Type) 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 an editor that has the specified base type for the property grid.
virtual System::Object ^ System.ComponentModel.ICustomTypeDescriptor.GetEditor(Type ^ editorBaseType) = System::ComponentModel::ICustomTypeDescriptor::GetEditor;
object ICustomTypeDescriptor.GetEditor (Type editorBaseType);
Function GetEditor (editorBaseType As Type) As Object Implements ICustomTypeDescriptor.GetEditor
Parameters
- editorBaseType
- Type
A Type object that represents the base type of the editor that you want to find.
Returns
An instance of the editor that can be cast to the specified editor type, or null
if an editor of the requested type cannot be found.
Implements
Examples
The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetEditor%2A> method.
object MyGetEditor(Type editorBaseType) {
return TypeDescriptor.GetEditor(
this, editorBaseType, true
);
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for