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
| Name | Type | Access | Description |
|---|---|---|---|
TextVerticalType | TextVerticalType | Read | Gets the text vertical type. |
TextAnchorType | TextAnchorType | Read | Gets the text anchor type. |
TextFrame | TextFrame | Read | Gets the text frame. |
Table | Table | Read | Gets the table. |
CellFormat | CellFormat | Read | Gets the cell format. |
Slide | Slide | Read | Gets the slide. |
Methods
| Signature | Description |
|---|---|
TextVerticalType() → TextVerticalType | Gets or sets the vertical text orientation of the cell |
TextAnchorType() → TextAnchorType | Gets or sets the text anchoring mode of the cell |
TextFrame() → TextFrame | Provides access to the cell’s TextFrame for reading or modifying text |
TextFrame() → TextFrame | |
Table() → Table | Provides access to the parent Table of the cell |
CellFormat() → CellFormat | Returns the formatting settings applied to the cell |
CellFormat() → CellFormat | |
Slide() → Slide | Provides 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_node | Returns the child node, or an empty node if not present. |
ensure_tc_pr() → pugi::xml_node | Returns the child node, creating it if absent. |
tc_element() → pugi::xml_node | Returns the backing XML element ( ). |
offset_x() → double | Returns the x offset of the cell (distance from left side of table). |
set_offset_x(value: double) | |
offset_y() → double | Returns the y offset of the cell (distance from top side of table). |
set_offset_y(value: double) | |
first_row_index() → int | Returns the index of the first row covered by this cell. Read-only. |
set_first_row_index(value: int) | |
first_column_index() → int | Returns the index of the first column covered by this cell. Read-only. |
set_first_column_index(value: int) | |
width() → double | Returns the width of the cell. |
set_width(value: double) | |
height() → double | Returns the height of the cell. |
set_height(value: double) | |
minimal_height() → double | Returns the minimal height of the cell. |
set_minimal_height(value: double) | |
margin_left() → double | Returns the left margin in a TextFrame. Read/write. |
set_margin_left(value: double) | |
margin_right() → double | Returns the right margin in a TextFrame. Read/write. |
set_margin_right(value: double) | |
margin_top() → double | Returns the top margin in a TextFrame. Read/write. |
set_margin_top(value: double) | |
margin_bottom() → double | Returns the bottom margin in a TextFrame. Read/write. |
set_margin_bottom(value: double) | |
text_vertical_type() → TextVerticalType | Returns the type of vertical text. Read/write. |
set_text_vertical_type(value: TextVerticalType) | |
text_anchor_type() → TextAnchorType | Returns the text anchor type. Read/write. |
set_text_anchor_type(value: TextAnchorType) | |
anchor_center() → bool | Determines whether text box is centered inside the cell. Read/write. |
set_anchor_center(value: bool) | |
first_row() → Row | Returns the first row of this cell. Requires table to be set. |
first_column() → Column | Returns the first column of this cell. Requires table to be set. |
col_span() → int | Returns the number of grid columns spanned by this cell. |
set_col_span(value: int) | |
row_span() → int | Returns the number of rows spanned by this cell. |
set_row_span(value: int) | |
text_frame() → TextFrame | Returns the text frame for this cell. |
text_frame() → TextFrame | Returns the text frame for this cell. |
table() → Table | Returns the parent table for this cell. |
set_table(value: Table) | |
is_merged_cell() → bool | Returns true if the cell is merged with any adjacent cell. |
h_merge() → bool | Returns whether this cell is horizontally merged (continuation cell). |
set_h_merge(value: bool) | |
v_merge() → bool | Returns whether this cell is vertically merged (continuation cell). |
set_v_merge(value: bool) | |
cell_format() → CellFormat | Returns the cell format. |
cell_format() → CellFormat | Returns the cell format. |
slide() → Slide | Returns the parent slide for this cell. |
set_slide(value: Slide) | |
presentation() → Presentation | Returns the parent presentation for this cell. |