C# Class Accord.Controls.NumericCollectionEditor

Type editor for numeric collections.
This class can be used to edit numeric collections more easily in property grids.
Inheritance: System.Drawing.Design.UITypeEditor
显示文件 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
detectCollectionType ( ) : Type

Method Details

EditValue() public method

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.
return object

GetEditStyle() public method

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.
return UITypeEditorEditStyle

GetItems() public method

Gets the items in the collection as a T:object[].
public GetItems ( object editValue ) : object[]
editValue object The collection object being edited.
return object[]

NumericCollectionEditor() public method

Initializes a new instance of the NumericCollectionEditor class.
public NumericCollectionEditor ( ) : System
return System

SetItems() public method

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.
return void