Cell

Overview

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

Represents a cell in a table.

This class declares 62 methods for 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. Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Accessor methods: CellFormat, Slide, Table, TextAnchorType, TextFrame, TextVerticalType.

Accessor Methods

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() → TextVerticalTypeReturns the type of vertical text. Read/write.
TextAnchorType() → TextAnchorTypeReturns the text anchor type. Read/write.
TextFrame() → TextFrameReturns the text frame for this cell.
TextFrame() → TextFrameProvides access to the cell’s TextFrame for reading or modifying text
Table() → TableReturns the parent table for this cell.
CellFormat() → CellFormatReturns the cell format.
CellFormat() → CellFormatReturns the formatting settings applied to the cell
Slide() → SlideReturns the parent slide for this cell.
Cell()Calls Cell on this Cell instance.
~Cell()Calls ~Cell on this Cell instance.
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)Calls set_offset_x(value) on this Cell instance.
offset_y() → doubleReturns the y offset of the cell (distance from top side of table).
set_offset_y(value: double)Calls set_offset_y(value) on this Cell instance.
first_row_index() → intReturns the index of the first row covered by this cell. Read-only.
set_first_row_index(value: int)Calls set_first_row_index(value) on this Cell instance.
first_column_index() → intReturns the index of the first column covered by this cell. Read-only.
set_first_column_index(value: int)Calls set_first_column_index(value) on this Cell instance.
width() → doubleReturns the width of the cell.
set_width(value: double)Calls set_width(value) on this Cell instance.
height() → doubleReturns the height of the cell.
set_height(value: double)Calls set_height(value) on this Cell instance.
minimal_height() → doubleReturns the minimal height of the cell.
set_minimal_height(value: double)Calls set_minimal_height(value) on this Cell instance.
margin_left() → doubleReturns the left margin in a TextFrame. Read/write.
set_margin_left(value: double)Calls set_margin_left(value) on this Cell instance.
margin_right() → doubleReturns the right margin in a TextFrame. Read/write.
set_margin_right(value: double)Calls set_margin_right(value) on this Cell instance.
margin_top() → doubleReturns the top margin in a TextFrame. Read/write.
set_margin_top(value: double)Calls set_margin_top(value) on this Cell instance.
margin_bottom() → doubleReturns the bottom margin in a TextFrame. Read/write.
set_margin_bottom(value: double)Calls set_margin_bottom(value) on this Cell instance.
text_vertical_type() → TextVerticalTypeReturns the type of vertical text. Read/write.
set_text_vertical_type(value: TextVerticalType)Calls set_text_vertical_type(value) on this Cell instance.
text_anchor_type() → TextAnchorTypeReturns the text anchor type. Read/write.
set_text_anchor_type(value: TextAnchorType)Calls set_text_anchor_type(value) on this Cell instance.
anchor_center() → boolDetermines whether text box is centered inside the cell. Read/write.
set_anchor_center(value: bool)Calls set_anchor_center(value) on this Cell instance.
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)Calls set_col_span(value) on this Cell instance.
row_span() → intReturns the number of rows spanned by this cell.
set_row_span(value: int)Calls set_row_span(value) on this Cell instance.
text_frame() → TextFrameReturns the text frame for this cell.
text_frame() → TextFrameCalls text_frame on this Cell instance.
table() → TableReturns the parent table for this cell.
set_table(value: Table)Calls set_table(value) on this Cell instance.
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)Calls set_h_merge(value) on this Cell instance.
v_merge() → boolReturns whether this cell is vertically merged (continuation cell).
set_v_merge(value: bool)Calls set_v_merge(value) on this Cell instance.
cell_format() → CellFormatReturns the cell format.
cell_format() → CellFormatCalls cell_format on this Cell instance.
slide() → SlideReturns the parent slide for this cell.
set_slide(value: Slide)Calls set_slide(value) on this Cell instance.
presentation() → PresentationReturns the parent presentation for this cell.

See Also

 English