www.gnostice.com 

OnCellDrawEx

Top  Previous  Next

This event is triggered just before rendering each cell during the creation of tables using BeginTable and EndTable methods.

 

Syntax

 

 

[VC++]

__event OnCellDrawEx(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, long FAR* Align, long FAR* TextColor)

 

[C#]

public event IgtPDFEngineXEvents_OnCellDrawExEventHandler OnCellDrawEx;

 

[VB]

Event OnCellDrawEx(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, Align As TxgtHAlignment, TextColor As Long)

 

Member of eDocEngineX.gtPDFEngineX

 

 

Parameters

 

Row

[in] Specifies row number of the cell.

Column

[in] Specifies column number of the cell.

PenColor

[in, out] Specifies color of the pen.

PenStyle

[in, out] Specifies style of the pen.

PenWidth

[in, out] Specifies width of the pen.

BrushColor

[in, out] Specifies color of the brush.

BrushStyle

[in, out] Specifies style of the brush.

Font

[in, out] Specifies font properties of the text.

FrameIsLeft, FrameIsTop, FrameIsRight, FrameIsBottom

[in, out] (Boolean values) Specify whether inside border of the cell should be drawn.

FrameLeft, FrameTop, FrameRight, FrameBottom

[in, out] Specifies respective internal margin of the cell.

HAlignment

[in, out] Specifies horizontal alignment for the text.

TextColor

[in, out] Specifies color of the text.

 

 

Remarks

The OnCellDrawEx 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, brush, frame, font and horizontal alignment properties corresponding to a particular cell by providing a handler to this event.

 

Following the introduction of the OnCellDrawEx event in eDocEngine, an older event, OnCellDraw, stands deprecated. It is recommended that the OnCellDrawEx event  is used in place of OnCellDraw.