FallbackParentControlDesignerProvider Class
Allows for a fallback ParentControlDesigner to be used when a specified designer is unavailable.
public sealed class FallbackParentControlDesignerProvider : TypeDescriptionProvider
- Inheritance:
- object TypeDescriptionProvider object
Remarks
This prevents ComponentDesigner from taking effect when a specified designer is not found.
Constructors
FallbackParentControlDesignerProvider(TypeDescriptionProvider)
Allows for a fallback ParentControlDesigner to be used when a specified designer is unavailable.
public FallbackParentControlDesignerProvider(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.
Inherited Members
- object.GetType()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()