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.CreateDesigner

Creates an instance of the designer associated with the specified component.

[Visual Basic]
Public Shared Function CreateDesigner( _
   ByVal component As IComponent, _
   ByVal designerBaseType As Type _
) As IDesigner
[C#]
public static IDesigner CreateDesigner(
   IComponent component,
   Type designerBaseType
);
[C++]
public: static IDesigner* CreateDesigner(
   IComponent* component,
   Type* designerBaseType
);
[JScript]
public static function CreateDesigner(
   component : IComponent,
   designerBaseType : Type
) : IDesigner;

Parameters

component
An IComponent that specifies the component to associate with the designer.
designerBaseType
A Type that represents the type of designer to create.

Return Value

An IDesigner that is an instance of the designer for the component, or a null reference (in Visual Basic Nothing) if no designer can be found.

Remarks

If this method cannot find a valid DesignerAttribute, it searches up the class hierarchy for a designer. If it cannot find a designer in the class hierarchy, it returns a null reference (Nothing).

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor | EventDescriptor | PropertyDescriptor | IComponent | IDesigner