wx.GridCtrl.Grid.DataType Class Reference

List of all members.

Public Member Functions

 DataType (Type type, Renderers.GridCellRenderer renderer, Editors.GridCellEditor editor, ToStringConverter toString, FromStringConverter fromString)
 DataType (string name, Renderers.GridCellRenderer renderer, Editors.GridCellEditor editor, ToStringConverter toString, FromStringConverter fromString)
object Deserialize (string serializedObject)
delegate object FromStringConverter (string strValue)
string Serialize (object o)
delegate string ToStringConverter (object value)

Properties

Editors.GridCellEditor Editor [get]
string Name [get]
Renderers.GridCellRenderer Renderer [get]


Detailed Description

Defines a data type in a grid. A data type is a named structure comprising a renderer to display a grid cell and an editor to edit the value of the grid cell. Data types may be used by instances of GridTableBase to define the renderer and the editor of a cell. Use data types as logical presentation guidelines whereas grid cell attributes can be considered as most concrete presentation guidelines.

Constructor & Destructor Documentation

wx.GridCtrl.Grid.DataType.DataType ( string  name,
Renderers.GridCellRenderer  renderer,
Editors.GridCellEditor  editor,
ToStringConverter  toString,
FromStringConverter  fromString 
)

Creates an instance.

Parameters:
name The name of the data type.
renderer The renderer that shall be used to render cells of this type.
editor The editor that shall be used to change values of this type.
fromString Create an object of this type from a string.
toString Create a string serializing an object of this type.

wx.GridCtrl.Grid.DataType.DataType ( Type  type,
Renderers.GridCellRenderer  renderer,
Editors.GridCellEditor  editor,
ToStringConverter  toString,
FromStringConverter  fromString 
)

Creates an instance.

Parameters:
name The name of the data type will be derived from this type.
renderer The renderer that shall be used to render cells of this type.
editor The editor that shall be used to change values of this type.
fromString Create an object of this type from a string.
toString Create a string serializing an object of this type.


Member Function Documentation

object wx.GridCtrl.Grid.DataType.Deserialize ( string  serializedObject  ) 

Deserialization of an object that has been serialized with Serialize().

Parameters:
serializedObject the serialized object
Returns:
the deserialized object.

delegate object wx.GridCtrl.Grid.DataType.FromStringConverter ( string  strValue  ) 

The grid stores values typically in form of strings. Use this to define a convertion from the srialized string into the original.

Parameters:
strValue A string serialization.
Returns:
The serialized object.

string wx.GridCtrl.Grid.DataType.Serialize ( object  o  ) 

Serializes the provided object using the serializer - the toString-conversion of this data type.

Parameters:
o The original object.
Returns:

delegate string wx.GridCtrl.Grid.DataType.ToStringConverter ( object  value  ) 

The grid stores values typically in form of strings. Use this to define a convertion from the original object into a string object that will be used to store the value in table models that only can deal with strings.

Parameters:
value the original value.
Returns:
A string serialization of the argument.


Property Documentation

Editors.GridCellEditor wx.GridCtrl.Grid.DataType.Editor [get]

string wx.GridCtrl.Grid.DataType.Name [get]

Renderers.GridCellRenderer wx.GridCtrl.Grid.DataType.Renderer [get]


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads