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
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
detectCollectionType ( ) : Type

Method Details

EditValue() public méthode

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.
Résultat object

GetEditStyle() public méthode

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.
Résultat UITypeEditorEditStyle

GetItems() public méthode

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

NumericCollectionEditor() public méthode

Initializes a new instance of the NumericCollectionEditor class.
public NumericCollectionEditor ( ) : System
Résultat System

SetItems() public méthode

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.
Résultat void