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