C# Класс Accord.Controls.NumericCollectionEditor

Type editor for numeric collections.
This class can be used to edit numeric collections more easily in property grids.
Наследование: System.Drawing.Design.UITypeEditor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
EditValue ( ITypeDescriptorContext context, IServiceProvider provider, object value ) : object

Edits the specified object's value using the editor style indicated by the M:System.Drawing.Design.UITypeEditor.GetEditStyle method.

GetEditStyle ( ITypeDescriptorContext context ) : UITypeEditorEditStyle

Gets the editor style used by the M:System.Drawing.Design.UITypeEditor.EditValue(System.IServiceProvider,System.Object) method.

GetItems ( object editValue ) : object[]

Gets the items in the collection as a T:object[].

NumericCollectionEditor ( ) : System

Initializes a new instance of the NumericCollectionEditor class.

SetItems ( object editValue, object values ) : void

Sets the items in the collection.

Приватные методы

Метод Описание
detectCollectionType ( ) : Type

Описание методов

EditValue() публичный метод

Edits the specified object's value using the editor style indicated by the M:System.Drawing.Design.UITypeEditor.GetEditStyle method.
public EditValue ( ITypeDescriptorContext context, IServiceProvider provider, object value ) : object
context ITypeDescriptorContext An that can be used to gain additional context information.
provider IServiceProvider An that this editor can use to obtain services.
value object The object to edit.
Результат object

GetEditStyle() публичный метод

Gets the editor style used by the M:System.Drawing.Design.UITypeEditor.EditValue(System.IServiceProvider,System.Object) method.
public GetEditStyle ( ITypeDescriptorContext context ) : UITypeEditorEditStyle
context ITypeDescriptorContext An that can be used to gain additional context information.
Результат UITypeEditorEditStyle

GetItems() публичный метод

Gets the items in the collection as a T:object[].
public GetItems ( object editValue ) : object[]
editValue object The collection object being edited.
Результат object[]

NumericCollectionEditor() публичный метод

Initializes a new instance of the NumericCollectionEditor class.
public NumericCollectionEditor ( ) : System
Результат System

SetItems() публичный метод

Sets the items in the collection.
public SetItems ( object editValue, object values ) : void
editValue object The collection object being edited.
values object The objects to be added in the collection.
Результат void