wx.GridCtrl.Renderers.GridCellDrawingPointRenderer Class Reference

Inheritance diagram for wx.GridCtrl.Renderers.GridCellDrawingPointRenderer:

wx.GridCtrl.Renderers.GridCellRenderer wx.GridCtrl.GridCellWorker wx.Object

List of all members.

Public Member Functions

override GridCellRenderer Clone ()
override void Draw (Grid grid, GridCellAttr attr, DC dc, System.Drawing.Rectangle rect, int row, int col, bool isSelected)
GetBestSize (Grid grid, GridCellAttr attr, DC dc, int row, int col)
 GridCellDrawingPointRenderer (string format)
 GridCellDrawingPointRenderer ()

Static Public Member Functions

static string ExpandFormat (System.Drawing.Point position)
static string ExpandFormat (string format, System.Drawing.Point position)
Parse (string stringRepresentation)


string Format [get]

Detailed Description

Renderer to display elements of type System.Drawing.Point. Output will be according to a format string containing the elements {X} and {Y} for the X or, repectively, the Y coordinate of the point. The standard format is "{X}Y}.

Constructor & Destructor Documentation

wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.GridCellDrawingPointRenderer (  ) 

Creates a renderer using the standard format.

wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.GridCellDrawingPointRenderer ( string  format  ) 

Member Function Documentation

override GridCellRenderer wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.Clone (  )  [virtual]

Implements wx.GridCtrl.Renderers.GridCellRenderer.

override void wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.Draw ( Grid  grid,
GridCellAttr  attr,
DC  dc,
System.Drawing.Rectangle  rect,
int  row,
int  col,
bool  isSelected 

static string wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.ExpandFormat ( System.Drawing.Point  position  )  [static]

Returns a string representing the argument such a way that can be parsed by Parse().

position The value that shall be returned as string.

static string wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.ExpandFormat ( string  format,
System.Drawing.Point  position 
) [static]

Returns the expansion of the provided format string filling in data from the second argument.

format The format string that will be expanded. Currently implemented format options: {X} (X coordinate) and {Y} (Y coordinate).
position The instance whose properties will be formatted.

override System.Drawing.Size wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.GetBestSize ( Grid  grid,
GridCellAttr  attr,
DC  dc,
int  row,
int  col 
) [virtual]

Implements wx.GridCtrl.Renderers.GridCellRenderer.

static System.Drawing.Point wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.Parse ( string  stringRepresentation  )  [static]

Parse a position from the argument string that shall have the format "{X}@{Y}". An empty string will be interpreted as an empty position description (both coordinates are -1).

stringRepresentation String of the format "{X}@{Y}" that will be parsed for the result.
System.FormatException Will be thrown if the argument is from an unsupported format.

Property Documentation

string wx.GridCtrl.Renderers.GridCellDrawingPointRenderer.Format [get]

Readonly access to the format string.

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