Class
TableSegment

Segment that inserts a table into the PDF document

Definition

Namespace:Telerik.Documents.AI.Tools.Fixed.Core.Models.ContentSegments

Assembly:Telerik.Documents.AI.Tools.Fixed.Core.dll

Syntax:

cs-api-definition
public class TableSegment : ContentSegment

Inheritance: objectContentSegmentTableSegment

Constructors

TableSegment()

Declaration

cs-api-definition
public TableSegment()

Properties

FontSize

Font size for table text in points. Default is 10.

Declaration

cs-api-definition
public double FontSize { get; set; }

Property Value

double

HeaderBackgroundColor

Background color for header row in hex format (e.g., '#F0F0F0'). Only applied if headers are provided.

Declaration

cs-api-definition
public string HeaderBackgroundColor { get; set; }

Property Value

string

HeaderFontSize

Font size for header text in points. Default is 12.

Declaration

cs-api-definition
public double HeaderFontSize { get; set; }

Property Value

double

HeaderTextColor

Text color for header row in hex format (e.g., '#000000'). Only applied if headers are provided.

Declaration

cs-api-definition
public string HeaderTextColor { get; set; }

Property Value

string

Headers

Optional array of header cells for the table. If provided, will be formatted differently from regular rows.

Declaration

cs-api-definition
public string[] Headers { get; set; }

Property Value

string[]

Rows

Array of table rows. Each row is an array of cell data (strings).

Declaration

cs-api-definition
public string[][] Rows { get; set; }

Property Value

string[][]

SegmentType

The type of content segment

Declaration

cs-api-definition
public override string SegmentType { get; }

Property Value

string

Overrides ContentSegment.SegmentType

ShowBorders

Whether the table should have borders. Default is true.

Declaration

cs-api-definition
public bool ShowBorders { get; set; }

Property Value

bool