Cell

Overview

Cell is a class in Aspose.Slides FOSS for C++.

Represents a cell in a table.

This class provides 62 methods for working with Cell objects in C++ programs. Available methods include: Cell, CellFormat, Slide, Table, TextAnchorType, TextFrame, TextVerticalType, anchor_center, cell_format, col_span, ensure_tc_pr, first_column, and 46 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: CellFormat, Slide, Table, TextAnchorType, TextFrame, TextVerticalType.

Properties

NameTypeAccessDescription
TextVerticalTypeTextVerticalTypeReadGets the text vertical type.
TextAnchorTypeTextAnchorTypeReadGets the text anchor type.
TextFrameTextFrameReadGets the text frame.
TableTableReadGets the table.
CellFormatCellFormatReadGets the cell format.
SlideSlideReadGets the slide.

Methods

SignatureDescription
TextVerticalType() → TextVerticalTypeGets or sets the vertical text orientation of the cell
TextAnchorType() → TextAnchorTypeGets or sets the text anchoring mode of the cell
TextFrame() → TextFrameProvides access to the cell’s TextFrame for reading or modifying text
TextFrame() → TextFrame
Table() → TableProvides access to the parent Table of the cell
CellFormat() → CellFormatReturns the formatting settings applied to the cell
CellFormat() → CellFormat
Slide() → SlideProvides access to the Slide that contains the cell
Cell()
~Cell()
init_internal(tc_element: pugi::xml_node, row_index: int, col_index: int, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide, table: Table)Initialize this cell from an XML element.
get_tc_pr() → pugi::xml_nodeReturns the child node, or an empty node if not present.
ensure_tc_pr() → pugi::xml_nodeReturns the child node, creating it if absent.
tc_element() → pugi::xml_nodeReturns the backing XML element ( ).
offset_x() → doubleReturns the x offset of the cell (distance from left side of table).
set_offset_x(value: double)
offset_y() → doubleReturns the y offset of the cell (distance from top side of table).
set_offset_y(value: double)
first_row_index() → intReturns the index of the first row covered by this cell. Read-only.
set_first_row_index(value: int)
first_column_index() → intReturns the index of the first column covered by this cell. Read-only.
set_first_column_index(value: int)
width() → doubleReturns the width of the cell.
set_width(value: double)
height() → doubleReturns the height of the cell.
set_height(value: double)
minimal_height() → doubleReturns the minimal height of the cell.
set_minimal_height(value: double)
margin_left() → doubleReturns the left margin in a TextFrame. Read/write.
set_margin_left(value: double)
margin_right() → doubleReturns the right margin in a TextFrame. Read/write.
set_margin_right(value: double)
margin_top() → doubleReturns the top margin in a TextFrame. Read/write.
set_margin_top(value: double)
margin_bottom() → doubleReturns the bottom margin in a TextFrame. Read/write.
set_margin_bottom(value: double)
text_vertical_type() → TextVerticalTypeReturns the type of vertical text. Read/write.
set_text_vertical_type(value: TextVerticalType)
text_anchor_type() → TextAnchorTypeReturns the text anchor type. Read/write.
set_text_anchor_type(value: TextAnchorType)
anchor_center() → boolDetermines whether text box is centered inside the cell. Read/write.
set_anchor_center(value: bool)
first_row() → RowReturns the first row of this cell. Requires table to be set.
first_column() → ColumnReturns the first column of this cell. Requires table to be set.
col_span() → intReturns the number of grid columns spanned by this cell.
set_col_span(value: int)
row_span() → intReturns the number of rows spanned by this cell.
set_row_span(value: int)
text_frame() → TextFrameReturns the text frame for this cell.
text_frame() → TextFrameReturns the text frame for this cell.
table() → TableReturns the parent table for this cell.
set_table(value: Table)
is_merged_cell() → boolReturns true if the cell is merged with any adjacent cell.
h_merge() → boolReturns whether this cell is horizontally merged (continuation cell).
set_h_merge(value: bool)
v_merge() → boolReturns whether this cell is vertically merged (continuation cell).
set_v_merge(value: bool)
cell_format() → CellFormatReturns the cell format.
cell_format() → CellFormatReturns the cell format.
slide() → SlideReturns the parent slide for this cell.
set_slide(value: Slide)
presentation() → PresentationReturns the parent presentation for this cell.

See Also

 English