Table of Contents

Class TableFormatter

Namespace
MigraDoc.DocumentObjectModel.Tables
Assembly
MigraDoc.DocumentObjectModel.dll

Contains methods to simplify table formatting.

public static class TableFormatter
Inheritance
object
TableFormatter

Methods

CopyNeighboringRowShadingToBottom(Table, int)

Get the Shading of the last "targetRowCount" Rows from the Row above.

CopyNeighboringRowShadingToTop(Table, int)

Get the Shading of the first "targetRowCount" Rows from the Row below.

ExpandTable(Table, int)

Adds one variable count of rows and columns to the top, right, bottom and left of the table.

ExpandTable(Table, int, int)

Adds one variable count of rows and one of columns to the right and the bottom of the table.

ExpandTable(Table, int, int, int, int)

Adds variable counts of rows and columns to the top, right, bottom and of left of the table.

InsertGlueColumn(Table, int, int, int)

Inserts a magic glue column to avoid PageBreaks at the first "rowCountTop" and the last "rowCountBottom" of a Table.

RemoveInnerHorizontalBorders(Table, int, int)

Removes all inner horizontal Borders between "start" index and the next "count" Rows.

RemoveInnerVerticalBorders(Table, int, int)

Removes all inner vertical Borders between "start" index and the next "count" Columns.

SetOuterCellsWidth(Table, Unit)

Sets the width/height of the outer columns/rows to one value.

SetOuterCellsWidth(Table, Unit, Unit)

Sets each the width of the outer columns and the height of the outer rows to a value.

SetRoundedCorners(Table)

Sets the corner cells of the table to rounded corners.

SurroundContentWithTable(Section, int, int, Unit)

Surrounds "count" Elements beginning with index "start" with a one-Column Table of the specified width, where each row contains one of the paragraphs.