[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.TableRenderer.AddCell

AddCell Method

AddCell(int, int, int, int)

Creates an empty table cell with default style at the specified position.

Declaration
public TableCell AddCell(int rowIndex, int columnIndex, int rowSpan = 1, int columnSpan = 1)
Public Function AddCell(rowIndex As Integer, columnIndex As Integer, Optional rowSpan As Integer = 1, Optional columnSpan As Integer = 1) As TableCell
Parameters
Type Name Description
int rowIndex

Index of top row in the cell.

int columnIndex

Index of left column in the cell.

int rowSpan

The number of rows covered by a cell.

int columnSpan

The number of columns covered by a cell.

Returns
Type Description
TableCell

A TableCell object.

AddCell(CellStyle, int, int, int, int)

Creates an empty table cell with given style at the specified position.

Declaration
public TableCell AddCell(CellStyle cellStyle, int rowIndex, int columnIndex, int rowSpan = 1, int columnSpan = 1)
Public Function AddCell(cellStyle As CellStyle, rowIndex As Integer, columnIndex As Integer, Optional rowSpan As Integer = 1, Optional columnSpan As Integer = 1) As TableCell
Parameters
Type Name Description
CellStyle cellStyle

The style of the cell, or null to use the default style.

int rowIndex

Index of top row in the cell.

int columnIndex

Index of left column in the cell.

int rowSpan

The number of rows covered by a cell.

int columnSpan

The number of columns covered by a cell.

Returns
Type Description
TableCell

A TableCell object.

AddCell(int, int, object)

Creates a table cell with default style and a new TextLayout inside.

Declaration
public TableCell AddCell(int rowIndex, int columnIndex, object data)
Public Function AddCell(rowIndex As Integer, columnIndex As Integer, data As Object) As TableCell
Parameters
Type Name Description
int rowIndex

Index of top row in the cell.

int columnIndex

Index of left column in the cell.

object data

A data object or string to be displayed in the cell.

Returns
Type Description
TableCell

A TableCell object.

AddCell(CellStyle, int, int, object)

Creates a table cell with given style and a new TextLayout inside.

Declaration
public TableCell AddCell(CellStyle cellStyle, int rowIndex, int columnIndex, object data)
Public Function AddCell(cellStyle As CellStyle, rowIndex As Integer, columnIndex As Integer, data As Object) As TableCell
Parameters
Type Name Description
CellStyle cellStyle

The style of the cell, or null to use the default style.

int rowIndex

Index of top row in the cell.

int columnIndex

Index of left column in the cell.

object data

A data object or string to be displayed in the cell.

Returns
Type Description
TableCell

A TableCell object.

AddCell(int, int, int, int, object)

Creates a table cell with default style and a new TextLayout inside.

Declaration
public TableCell AddCell(int rowIndex, int columnIndex, int rowSpan, int columnSpan, object data)
Public Function AddCell(rowIndex As Integer, columnIndex As Integer, rowSpan As Integer, columnSpan As Integer, data As Object) As TableCell
Parameters
Type Name Description
int rowIndex

Index of top row in the cell.

int columnIndex

Index of left column in the cell.

int rowSpan

The number of rows covered by a cell.

int columnSpan

The number of columns covered by a cell.

object data

A data object or string to be displayed in the cell.

Returns
Type Description
TableCell

A TableCell object.

AddCell(CellStyle, int, int, int, int, object)

Creates a table cell with given style and a new TextLayout inside.

Declaration
public TableCell AddCell(CellStyle cellStyle, int rowIndex, int columnIndex, int rowSpan, int columnSpan, object data)
Public Function AddCell(cellStyle As CellStyle, rowIndex As Integer, columnIndex As Integer, rowSpan As Integer, columnSpan As Integer, data As Object) As TableCell
Parameters
Type Name Description
CellStyle cellStyle

The style of the cell, or null to use the default style.

int rowIndex

Index of top row in the cell.

int columnIndex

Index of left column in the cell.

int rowSpan

The number of rows covered by a cell.

int columnSpan

The number of columns covered by a cell.

object data

A data object or string to be displayed in the cell.

Returns
Type Description
TableCell

A TableCell object.