NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeDescriptor.GetEditor (Object, Type, Boolean)

Gets an editor with the specified base type for the specified component.

[Visual Basic]
Overloads Public Shared Function GetEditor( _
   ByVal component As Object, _
   ByVal editorBaseType As Type, _
   ByVal fNoCustomTypeDesc As Boolean _
) As Object
[C#]
public static object GetEditor(
   object component,
   Type editorBaseType,
   bool fNoCustomTypeDesc
);
[C++]
public: static Object* GetEditor(
   Object* component,
   Type* editorBaseType,
   bool fNoCustomTypeDesc
);
[JScript]
public static function GetEditor(
   component : Object,
   editorBaseType : Type,
   fNoCustomTypeDesc : Boolean
) : Object;

Parameters

component
The component to get the editor for.
editorBaseType
A Type that represents the base type of the editor you want to find.
fNoCustomTypeDesc
true if TypeDescriptor has been called by an instance of ICustomTypeDescriptor; otherwise, false.

Return Value

An instance of the editor that can be typecast to the specified editorBaseType. This returns a null reference (in Visual Basic Nothing) if no editor of the requested type can be found.

Remarks

You can define multiple editors for a property. This method allows you to select which editor you want to use.

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.GetEditor Overload List | TypeDescriptor | EventDescriptor | PropertyDescriptor | ICustomTypeDescriptor