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

Provides a designer-time modal editor for the gallery items contained in a group.

Definition

Constructors

C#
public GroupedGalleryItemsEditor()

Methods

Opens the item-selection dialog and edits the supplied collection in place; canceling does not roll back edits already made.

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

The designer context for the edited group.

providerIServiceProvider

The designer services used to display and commit the editor.

valueobject

The group's current collection of gallery items.

Returns:

object

null after acceptance because the editor reads its value after cleanup; otherwise, the original value. Canceling does not revert edits already applied to the collection.

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

Indicates that editing opens a modal dialog.

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

The designer context for the edited value.

Returns:

UITypeEditorEditStyle

Modal.

Overrides: UITypeEditor.GetEditStyle(ITypeDescriptorContext)