wx.GridCtrl.Extended.CellAttr Class Reference

Inheritance diagram for wx.GridCtrl.Extended.CellAttr:

wx.ICanBeMadeReadonly

List of all members.

Public Member Functions

 CellAttr (CellAttr src)
 CellAttr ()
object Clone ()
CellAttr CompleteArgByThis (CellAttr moreSpecificAttributes)
string ConvertToString (object o, System.Globalization.CultureInfo culture)
string ConvertToString (object o)
override bool Equals (object obj)
override int GetHashCode ()
object MakeReadOnly ()
CellAttr Merge (CellAttr lessSpecificAttributes)
void SetStdColours2D ()
void SetStdColours3D ()

Properties

IDictionary< string,
object > 
AdditionalProperties [get]
Alignment Alignment [get, set]
ColourSet2D Colours2D [get, set]
ColourSet3D Colours3D [get, set]
wx.GridCtrl.Editors.GridCellEditor Editor [get, set]
Font Font [get, set]
bool IsReadonly [get]
Renderers.Renderer Renderer [get, set]
ToString ToStringMethod [get, set]


Detailed Description

A pure .NET implementation of attributes that can be used to control the presentation of cells. for compatibility with standard grid editors and renderers, this

Constructor & Destructor Documentation

wx.GridCtrl.Extended.CellAttr.CellAttr (  ) 

Provides an instace that does not have any data at all.

wx.GridCtrl.Extended.CellAttr.CellAttr ( CellAttr  src  ) 

Creates a copy of the argument. Please note, that this is a shallow copy. This will create a copy of the ColourSet2D and ColourSet3D but using the same isntances for the colours (to prevent excessive use of handles for colours). Editor and renderer will also be the same in this instance and the soruce.

Parameters:
src The source of the copied data.


Member Function Documentation

object wx.GridCtrl.Extended.CellAttr.Clone (  ) 

Creates a shallow copy of this instance referring to the same instances of wx.Colour, the same editor instance, and the same renderer as this.

Returns:

CellAttr wx.GridCtrl.Extended.CellAttr.CompleteArgByThis ( CellAttr  moreSpecificAttributes  ) 

The result will have the proeprties of the argument. Undefined properties of the argument will be completed from this (if available). This method does the same as method Merge but accepts null as a representation of more specific arguments.

Parameters:
moreSpecificAttributes The more specific attributes that will be completed by this. The argument can be null. In that case, the result will be this.
Returns:
The properties of the argument completed by this.
Merge

string wx.GridCtrl.Extended.CellAttr.ConvertToString ( object  o,
System.Globalization.CultureInfo  culture 
)

Converts the argument into a string using the ToStringMethod().

Parameters:
o The object that will be converted into a string.
culture The output will be relatively to this culture.
Returns:

string wx.GridCtrl.Extended.CellAttr.ConvertToString ( object  o  ) 

Converts the argument into a string using the ToStringMethod().

Parameters:
o The object that will be converted into a string.
Returns:

override bool wx.GridCtrl.Extended.CellAttr.Equals ( object  obj  ) 

override int wx.GridCtrl.Extended.CellAttr.GetHashCode (  ) 

object wx.GridCtrl.Extended.CellAttr.MakeReadOnly (  ) 

From this call, all calls to modifiers will cause exceptions. This shall return this.

Implements wx.ICanBeMadeReadonly.

CellAttr wx.GridCtrl.Extended.CellAttr.Merge ( CellAttr  lessSpecificAttributes  ) 

The result will have the properties of this instance. Attributes that are not defined by this instance will be completed from the argument (if available). Additional properties will be merged analogously.

Parameters:
lessSpecificAttributes An instance providing the properties that will be used to define properties of the result that are not defined by this instance.
Returns:
CompleteArgByThis
Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

void wx.GridCtrl.Extended.CellAttr.SetStdColours2D (  ) 

Assigns standard colours to property Colours2D

Exceptions:
System.InvalidOperationException Will be thrown if this is readonly.

void wx.GridCtrl.Extended.CellAttr.SetStdColours3D (  ) 

Assigns standard colours to property Colours3D

Exceptions:
System.InvalidOperationException Will be thrown if this is readonly.


Property Documentation

IDictionary<string, object> wx.GridCtrl.Extended.CellAttr.AdditionalProperties [get]

Additional properties that might be used by some renderers.

Alignment wx.GridCtrl.Extended.CellAttr.Alignment [get, set]

The alignment of the rendered cell content in the cell rectangle. The corresponding flags define the vertical as well as the horizontal alignment. The default alignment depends on the used renderer.

Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

ColourSet2D wx.GridCtrl.Extended.CellAttr.Colours2D [get, set]

Colours that will be used by renderers without 3D appearance. If this is null, this is not defined. The interpretation of undefined attributes is defined by the renderers.

Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

ColourSet3D wx.GridCtrl.Extended.CellAttr.Colours3D [get, set]

Colours that will be used by renderers displaying data in 3D appearance. If this is null, this is not defined. The interpretation of undefined attributes is defined by the renderers.

Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

wx.GridCtrl.Editors.GridCellEditor wx.GridCtrl.Extended.CellAttr.Editor [get, set]

Editor that shall be used to edit the cell. If this is null, the cell cannot be edited.

Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

Font wx.GridCtrl.Extended.CellAttr.Font [get, set]

The font that shall be used. Please note on writing renderers, that this can be null. In such cases use the font of the DC.

Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

bool wx.GridCtrl.Extended.CellAttr.IsReadonly [get]

True iff all modifiers return an System.InvalidOperation exception.

Implements wx.ICanBeMadeReadonly.

Renderers.Renderer wx.GridCtrl.Extended.CellAttr.Renderer [get, set]

Renderer to display the cell.

Exceptions:
System.InvalidOperationException Will be thrown by the setter if this is readonly.

ToString wx.GridCtrl.Extended.CellAttr.ToStringMethod [get, set]

Method to convert values of the cell into a string. This will for instance be used by string renderers to display other kinds of objects.


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