Table

Overview

Table is a class in Aspose.Slides FOSS for .NET. Inherits from: GraphicalObject, ITable.

Represents a table shape on a slide.

Properties

NameTypeAccessDescription
GraphicalObjectLockIGraphicalObjectLock?ReadProvides access to lock settings for the table’s graphical object
RowsIRowCollectionReadGets the collection of rows contained in the table
ColumnsIColumnCollectionRead
TableFormatITableFormatReadGets or sets formatting options for the entire table
StylePresetTableStylePresetRead/WriteGets or sets a predefined style applied to the table
RightToLeftboolRead/WriteIndicates whether the table layout follows right‑to‑left reading order
FirstRowboolRead/WriteIndicates whether the first row is treated as a header row
FirstColboolRead/Write
LastRowboolRead/Write
LastColboolRead/Write
HorizontalBandingboolRead/WriteIndicates if alternating row colors are applied
VerticalBandingboolRead/WriteIndicates if alternating column colors are applied
AsIGraphicalObjectIGraphicalObjectRead
AsIBulkTextFormattableIBulkTextFormattableRead

Methods

SignatureDescription
MergeCells(cell1: ICell, cell2: ICell, allowSplitting: bool)Merges the specified cells; allowSplitting permits splitting merged cells
SetTextFormat(source: IBasePortionFormat)Applies the given base portion format to all text in the table
SetTextFormat(source: IParagraphFormat)
SetTextFormat(source: ITextFrameFormat)