[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.TableRenderer.-ctor

TableRenderer Constructor

TableRenderer(GcGraphics, LayoutRect, FixedTableSides, int, int, Color, float, float?, float?, float?, float, float, float, float)

Initializes a new instance of the TableRenderer class.

Declaration
public TableRenderer(GcGraphics graphics, LayoutRect tableRect, FixedTableSides fixedSides, int rowCount, int columnCount, Color gridLineColor, float gridLineWidth, float? rowMinHeight = null, float? columnMinWidth = null, float? paddingAll = null, float paddingLeft = 0, float paddingTop = 0, float paddingRight = 0, float paddingBottom = 0)
Public Sub New(graphics As GcGraphics, tableRect As LayoutRect, fixedSides As FixedTableSides, rowCount As Integer, columnCount As Integer, gridLineColor As Color, gridLineWidth As Single, Optional rowMinHeight As Single? = Nothing, Optional columnMinWidth As Single? = Nothing, Optional paddingAll As Single? = Nothing, Optional paddingLeft As Single = 0, Optional paddingTop As Single = 0, Optional paddingRight As Single = 0, Optional paddingBottom As Single = 0)
Parameters
Type Name Description
GcGraphics graphics

A GcGraphics used for creating TextLayout objects.

LayoutRect tableRect

A LayoutRect of the table.

FixedTableSides fixedSides

Specifies which sides of a table are fixed, i.e. don't move depending on the table content.

int rowCount

The overall number of rows in the table.

int columnCount

The overall number of columns in the table.

Color gridLineColor

The color of grid lines.

float gridLineWidth

The default grid line width, in graphic units.

float? rowMinHeight

The optional minimal height for each row, in graphic units.

float? columnMinWidth

The optional minimal width for each column, in graphic units.

float? paddingAll

All sides padding relative to the table rectangle, in graphic units.

float paddingLeft

Left side padding relative to the table rectangle, in graphic units.

float paddingTop

Top side padding relative to the table rectangle, in graphic units.

float paddingRight

Right side padding relative to the table rectangle, in graphic units.

float paddingBottom

Bottom side padding relative to the table rectangle, in graphic units.