Cell

Overview

Cell is a class in Aspose.Slides FOSS for .NET. Inherits from: ISlideComponent, ICell.

Represents a single cell within a table in a PowerPoint presentation.

Properties

NameTypeAccessDescription
OffsetXfloatReadSpecifies the horizontal offset of the cell within its column
OffsetYfloatReadSpecifies the vertical offset of the cell within its row
FirstRowIndexintReadReturns the zero‑based index of the cell’s first row
FirstColumnIndexintReadReturns the zero‑based index of the cell’s first column
WidthfloatReadGets the total width of the cell including margins
HeightfloatRead
MinimalHeightfloatReadDefines the minimum height the cell can shrink to
MarginLeftfloatRead/WriteReturns the left margin space inside the cell
MarginRightfloatRead/WriteReturns the right margin space inside the cell
MarginTopfloatRead/WriteReturns the top margin space inside the cell
MarginBottomfloatRead/WriteReturns the bottom margin space inside the cell
TextVerticalTypeTextVerticalTypeRead/WriteIndicates the vertical orientation of the cell’s text
TextAnchorTypeTextAnchorTypeRead/WriteDefines how text is anchored vertically within the cell
AnchorCenterboolRead/WriteDetermines whether the text anchor point is centered
FirstRowIRowReadProvides the IRow object representing the cell’s first row
FirstColumnIColumnReadProvides the IColumn object representing the cell’s first column
ColSpanintReadReturns the number of columns spanned by the cell
RowSpanintReadReturns the number of rows spanned by the cell
TextFrameITextFrame?ReadGets the ITextFrame containing the cell’s text, if any
TableITableReadReturns the ITable that owns this cell
IsMergedCellboolReadIndicates whether the cell is part of a merged region
CellFormatICellFormatReadProvides access to formatting properties of the cell
SlideIBaseSlide?ReadReturns the slide that contains the cell, if available
PresentationIPresentation?Read
AsIPresentationComponentIPresentationComponentReadCasts the cell to an IPresentationComponent
AsISlideComponentISlideComponentReadCasts the cell to an ISlideComponent

See Also