New to Telerik UI for WinForms? Start a free 30-day trial

Provides a drop-down editor for selecting built-in carousel paths in a property grid.

Definition

Constructors

C#
public CarouselPathEditor()

Properties

Gets whether the path-selection drop-down can be resized.

C#
public override bool IsDropDownResizable { get; }

Overrides: UITypeEditor.IsDropDownResizable

Methods

Shows the built-in Bezier and ellipse paths; choosing (none) creates a new ellipse path, while an unchanged selection preserves the current value.

C#
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
Parameters:contextITypeDescriptorContext

The context in which the value is being edited.

providerIServiceProvider

The service provider used to obtain the Windows Forms drop-down editor service.

valueobject

The current carousel path.

Returns:

object

The original value if the selection is unchanged; otherwise the selected path or a new ellipse path for (none).

Overrides: UITypeEditor.EditValue(ITypeDescriptorContext, IServiceProvider, object)

Uses a drop-down list to edit the path.

C#
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
Parameters:contextITypeDescriptorContext

The context in which the value is being edited.

Returns:

UITypeEditorEditStyle

DropDown.

Overrides: UITypeEditor.GetEditStyle(ITypeDescriptorContext)