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)

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 _
) As Object
[C#]
public static object GetEditor(
   object component,
   Type editorBaseType
);
[C++]
public: static Object* GetEditor(
   Object* component,
   Type* editorBaseType
);
[JScript]
public static function GetEditor(
   component : Object,
   editorBaseType : Type
) : 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.

Return Value

An instance of the editor that can be type cast 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