SharpLeaf Reference > Table Methods > SetOffset Method

Table.SetOffset Method

Leave some columns and rows outside the table box and grid.

public void SetOffset(
    int columns,
    int rows
);
columns
Number of leading columns to leave outside the table box.
rows
Number of leading rows to leave outside the table box.

Example

   tb.SetOffset(1,0);  // Offset table box and grid by 1 column and 0 row

Description

Generally used in conjunction with SetTitles. Affects which gridlines are not drawn – but not their span. For more advanced control on grid, disable them with SetColumnGrid(0) and SetRowGrid(0) and use SetCellBox for each cell.

See also ...

Table Members | Table.Box Property | Table.SetTitles Method


Send comments on this topic
© Dyalog Ltd 2021