wx.GridCtrl.Renderers.GridCellRectangleRenderer Class Reference

Inheritance diagram for wx.GridCtrl.Renderers.GridCellRectangleRenderer:

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)
override
System.Drawing.Size 
GetBestSize (Grid grid, GridCellAttr attr, DC dc, int row, int col)
 GridCellRectangleRenderer (string format)
 GridCellRectangleRenderer ()

Static Public Member Functions

static string ExpandFormat (string format, System.Drawing.Rectangle rect)
static
System.Drawing.Rectangle 
Parse (string stringRepresentation)

Properties

string Format [get]


Detailed Description

Renderer to display elements of type System.Drawing.Rectangle. Output will be according to a format string containing the elements {X}, {Y}, {W} and {H} for the X or the Y coordinates, the height, or the width, respectively. The standard format is "{X}Y}, {W}x{H}.

Constructor & Destructor Documentation

wx.GridCtrl.Renderers.GridCellRectangleRenderer.GridCellRectangleRenderer (  ) 

Creates a renderer using the standard format.

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


Member Function Documentation

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

Implements wx.GridCtrl.Renderers.GridCellRenderer.

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

static string wx.GridCtrl.Renderers.GridCellRectangleRenderer.ExpandFormat ( string  format,
System.Drawing.Rectangle  rect 
) [static]

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

Parameters:
format The format string that will be expanded. Currently implemented format options: {X} (X coordinate) and {Y} (Y coordinate), {H} (height), and {W} (width).
position 
Returns:

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

Implements wx.GridCtrl.Renderers.GridCellRenderer.

static System.Drawing.Rectangle wx.GridCtrl.Renderers.GridCellRectangleRenderer.Parse ( string  stringRepresentation  )  [static]

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

Parameters:
stringRepresentation String of the format "{X}@{Y},{W}x{H}" that will be parsed for the result.
Returns:
Exceptions:
System.FormatException Will be thrown if the argument is from an unsupported format.


Property Documentation

string wx.GridCtrl.Renderers.GridCellRectangleRenderer.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