Table of Contents

Class OptionsPanelCollectionEditor

Namespace
ExControls.Editors
Assembly
ExControls.dll

Provides a collection editor for a ControlCollection of OptionsPanels.

public class OptionsPanelCollectionEditor : CollectionEditor
Inheritance
CollectionEditor
OptionsPanelCollectionEditor
Inherited Members
CollectionEditor.CancelChanges()
CollectionEditor.CanSelectMultipleInstances()
CollectionEditor.CreateCollectionViewModel()
CollectionEditor.CreateNewItemTypes()
CollectionEditor.GetService<T>()
CollectionEditor.GetRequiredService<T>()
CollectionEditor.TryGetService<T>(out T)
CollectionEditor.CollectionType
CollectionEditor.Context
CollectionEditor.CollectionItemType
CollectionEditor.NewItemTypes

Remarks

On .NET this is the server-side part of the editor; it is registered in DesignToolsServer and shown in Visual Studio by the ExControls.Designer package (see ExControls.Designer.targets).

Constructors

OptionsPanelCollectionEditor(IServiceProvider, Type)

Initializes a new instance of the OptionsPanelCollectionEditor class.

public OptionsPanelCollectionEditor(IServiceProvider provider, Type type)

Parameters

provider IServiceProvider

service provider of the design tools server

type Type

type of the edited collection

Methods

CreateCollectionItemType()

Gets the data type that this collection contains.

protected override Type CreateCollectionItemType()

Returns

Type

The data type of the items in the collection, or object if no Item property can be located on the collection.

Remarks

You can retrieve the data type of the items of the collection from the CollectionItemType property, which is faster than this method.

This method does not need to be called by users, except in derived classes where this method has been overridden and implemented.

The default implementation of this method returns the data type of the Item property of the collection, if it exists.

CreateInstance(Type)

Creates a new instance of the specified collection item type.

protected override object CreateInstance(Type itemType)

Parameters

itemType Type

The type of item to create.

Returns

object

A new instance of the specified type.