FallbackControlDesignerProvider Class
Allows for a fallback ControlDesigner to be used when a specified designer is unavailable.
public sealed class FallbackControlDesignerProvider : TypeDescriptionProvider
- Inheritance:
- object TypeDescriptionProvider object
Remarks
This prevents ComponentDesigner from taking effect when a specified designer is not found.
Constructors
FallbackControlDesignerProvider(TypeDescriptionProvider)
Allows for a fallback ControlDesigner to be used when a specified designer is unavailable.
public FallbackControlDesignerProvider(TypeDescriptionProvider parent)
| Parameter | Type | Description |
|---|---|---|
| parent | TypeDescriptionProvider | The parent TypeDescriptionProvider. |
Remarks
This prevents ComponentDesigner from taking effect when a specified designer is not found.
Methods
GetTypeDescriptor(Type, object?)
Gets a custom type descriptor for the given type and object.
public override ICustomTypeDescriptor? GetTypeDescriptor(Type objectType, object? instance)
| Parameter | Type | Description |
|---|---|---|
| objectType | Type | The type of object for which to retrieve the type descriptor. |
| instance | object | An instance of the type. Can be |
Returns
- ICustomTypeDescriptor:
An ICustomTypeDescriptor that can provide metadata for the type.
Register(Type)
Registers the provider.
public static void Register(Type type)
| Parameter | Type | Description |
|---|---|---|
| type | Type | The component Type. |
Remarks
This method should only be called once per type.
Inherited Members
- object.GetType()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()