Class
ElementShapeEditor

Provides a design-time editor for ElementShape objects with dropdown selection and custom shape editing capabilities.

Definition

Constructors

ElementShapeEditor()

Initializes a new instance of the ElementShapeEditor class.

Declaration

cs-api-definition
public ElementShapeEditor()

Methods

EditValue(ITypeDescriptorContext, IServiceProvider, object)

Edits the specified value using the provided context and service provider.

Declaration

cs-api-definition
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)

Parameters

context

ITypeDescriptorContext

The type descriptor context.

provider

IServiceProvider

The service provider.

value

object

The current value to edit.

Returns

object

The edited value.

Overrides UITypeEditor.EditValue(ITypeDescriptorContext, IServiceProvider, object)

GetEditStyle(ITypeDescriptorContext)

Gets the editing style for the editor.

Declaration

cs-api-definition
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)

Parameters

context

ITypeDescriptorContext

The type descriptor context.

Returns

UITypeEditorEditStyle

The DropDown style.

Overrides UITypeEditor.GetEditStyle(ITypeDescriptorContext)