Table

Table class

Represents a table that can be added to the page.

public sealed class Table : BaseParagraph

Constructors

Name Description
Table() The default constructor.

Properties

Name Description
Alignment { get; set; } Gets or sets the table alignment.
BackgroundColor { get; set; } Gets or sets table background color
Border { get; set; } Gets or sets the border.
BreakText { get; set; } Gets or sets break text for table
Broken { get; set; } Gets or sets table vertial broken;
ColumnAdjustment { get; set; } Gets or sets the table column adjustment.
ColumnWidths { get; set; } Gets the column widths of the table.
CornerStyle { get; set; } Gets or sets the styles of the border corners
DefaultCellBorder { get; set; } Gets default cell border;
DefaultCellPadding { get; set; } Gets or sets the default cell padding.
DefaultCellTextState { get; set; } Gets or sets the default cell text state.
DefaultColumnWidth { get; set; } Gets default cell border;
virtual HorizontalAlignment { get; set; } Gets or sets a horizontal alignment of paragraph
virtual Hyperlink { get; set; } Gets or sets the fragment hyperlink(for pdf generator).
IsBordersIncluded { get; set; } Gets or sets border included in column widhts.
IsBroken { get; set; } Gets or sets the table is broken - will be truncated for next page.
IsFirstParagraphInColumn { get; set; } Gets or sets a bool value that indicates whether this paragraph will be at next column. Default is false.(for pdf generation)
IsInLineParagraph { get; set; } Gets or sets a paragraph is inline. Default is false.(for pdf generation)
IsInNewPage { get; set; } Gets or sets a bool value that force this paragraph generates at new page. Default is false.(for pdf generation)
IsKeptWithNext { get; set; } Gets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false.(for pdf generation)
Left { get; set; } Gets or sets the table left coordinate.
Margin { get; set; } Gets or sets a outer margin for paragraph (for pdf generation)
RepeatingColumnsCount { get; set; } Gets or sets the maximum columns count for table
RepeatingRowsCount { get; set; } Gets the first rows count repeated for several pages
RepeatingRowsStyle { get; set; } Gets the style for repeating rows
Rows { get; } Gets the rows of the table.
Top { get; set; } Gets or sets the table top coordinate.
virtual VerticalAlignment { get; set; } Gets or sets a vertical alignment of paragraph
ZIndex { get; set; } Gets or sets a int value that indicates the Z-order of the graph. A graph with larger ZIndex will be placed over the graph with smaller ZIndex. ZIndex can be negative. Graph with negative ZIndex will be placed behind the text in the page.

Methods

Name Description
override Clone() Clone the table.
GetHeight(Page) Get height.
GetWidth() Get width.
ImportArray(object[], int, int, bool) Imports one-dimensional array of data into table. Import goes one cell per each array’s item and starts from row and column defined in parameters. During import, if detected that necessary rows are still absent(i.e. target table is too small to absorb all data), necessary rows will be created
ImportDataTable(DataTable, bool, int, int) Imports data from System.Data.DataTable into Aspose.Pdf.Table
ImportDataTable(DataTable, bool, int, byte, int, int, bool) Imports a DataTable object into the table.
ImportDataTable(DataTable, int[], int[], int, int, bool, bool) Imports a DataTable object, but not as whole entity. Only specified rows and columns are imported.
ImportDataView(DataView, bool, int, int, int, int) Imports a DataView object’s data into the table.
SetColumnTextState(int, TextState) Set height.

See Also