www.gnostice.com 

OnCellDraw

Top  Previous  Next

This event is triggered when a cell in a table is drawn.

 

This event is now deprecated and it is recommended that the OnCellDrawEx event is used in its place.

 

Syntax

 

 

[VC++]

__event OnCellDraw(long Row, long Column, long FAR* PenColor, long FAR* PenStyle, long FAR* PenWidth, long FAR* BrushColor, long FAR* BrushStyle, LPDISPATCH FAR* Font, BOOL FAR* FrameIsLeft, BOOL FAR* FrameIsTop, BOOL FAR* FrameIsRight, BOOL FAR* FrameIsBottom, double FAR* FrameLeft, double FAR* FrameTop, double FAR* FrameRight, double FAR* FrameBottom)

 

[C#]

public sealed delegate IgtPDFEngineXEvents_OnCellDrawEventHandler : System.MulticastDelegate  

 

[VB]

Event OnCellDraw(Row As Long, Column As Long, PenColor As Long, PenStyle As TxgtPenStyle, PenWidth As Long, BrushColor As Long, BrushStyle As TxgtBrushStyle, Font As IFontDisp, FrameIsLeft As Boolean, FrameIsTop As Boolean, FrameIsRight As Boolean, FrameIsBottom As Boolean, FrameLeft As Double, FrameTop As Double, FrameRight As Double, FrameBottom As Double)

 

Member of eDocEngineX.gtPDFEngineX

 

 

Parameters

 

 

Row

[in] Specifies the row number of the cell.

 

 

Column

[in] Specifies the column number of the cell.

 

 

PenColor

[out] Specifies the color of the pen.

 

 

PenStyle

[out] Specifies the style of the pen.

 

 

PenWidth

[out] Specifies the width of the pen.

 

 

BrushColor

[out] Specifies the color of the brush.

 

 

BrushStyle

[out] Specifies the style of the brush.

 

Font

[out] Specifies the font properties of the text.

 

FrameIsLeft, FrameIsTop, FrameIsRight, FrameIsBottom

[out] Boolean value which specifies whether the inside border of the cell should be drawn or not.

 

FrameLeft, FrameTop, FrameRight, FrameBottom

[out] The respective internal margin of the cell.

 

 

 

 

Remarks

 

 

The OnCellDraw event allows you to change the properties of a table's cell before drawing. This event is triggered just before drawing the cell specified by Row and Column. The user can change the Pen and Brush properties corresponding to a particular cell by providing handler to this event.

 

 

 

 

See Also

 

 

BeginTable, EndTable, NewRow