TextFrameFormat
Overview
TextFrameFormat is a class in Aspose.Slides FOSS for C++.
Represents text frame formatting properties.
This class declares 41 methods for TextFrameFormat objects in C++ programs.
Available methods include: TextFrameFormat, TextShapeType, ThreeDFormat, anchoring_type, autofit_type, center_text, column_count, column_spacing, ensure_body_pr, get_body_pr, get_margin, init_internal, and 27 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Accessor methods: TextShapeType, ThreeDFormat.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
ThreeDFormat | ThreeDFormat | Read | Gets the three d format. |
TextShapeType | TextShapeType | Read | Gets the text shape type. |
Methods
| Signature | Description |
|---|---|
ThreeDFormat() → ThreeDFormat | Returns the ThreeDFormat object that represents 3D effect properties for text. Read-only. |
ThreeDFormat() → ThreeDFormat | Returns the ThreeDFormat object that represents 3D effect properties for text. Read-only. |
TextShapeType() → TextShapeType | Returns the text shape type (transform). |
TextFrameFormat() | Calls TextFrameFormat on this TextFrameFormat instance. |
margin_left() → double | Returns the left margin in points. NaN = undefined. |
set_margin_left(value: double) | Sets the left margin in points. |
margin_right() → double | Returns the right margin in points. NaN = undefined. |
set_margin_right(value: double) | Sets the right margin in points. |
margin_top() → double | Returns the top margin in points. NaN = undefined. |
set_margin_top(value: double) | Sets the top margin in points. |
margin_bottom() → double | Returns the bottom margin in points. NaN = undefined. |
set_margin_bottom(value: double) | Sets the bottom margin in points. |
wrap_text() → NullableBool | Returns whether text wraps. |
set_wrap_text(value: NullableBool) | Sets whether text wraps. |
anchoring_type() → TextAnchorType | Returns the text anchor type. |
set_anchoring_type(value: TextAnchorType) | Sets the text anchor type. |
center_text() → NullableBool | Returns whether text is centered. |
set_center_text(value: NullableBool) | Sets whether text is centered. |
text_vertical_type() → TextVerticalType | Returns the text vertical type. |
set_text_vertical_type(value: TextVerticalType) | Sets the text vertical type. |
autofit_type() → TextAutofitType | Returns the autofit type. |
set_autofit_type(value: TextAutofitType) | Sets the autofit type. |
column_count() → int | Returns the number of columns. |
set_column_count(value: int) | Sets the number of columns. |
column_spacing() → double | Returns the column spacing in points. |
set_column_spacing(value: double) | Sets the column spacing in points. |
three_d_format() → ThreeDFormat | Returns the ThreeDFormat object that represents 3D effect properties for text. Read-only. |
three_d_format() → ThreeDFormat | Returns the ThreeDFormat object that represents 3D effect properties for text. Read-only. |
keep_text_flat() → bool | Returns whether text is kept flat (no 3D rotation). |
set_keep_text_flat(value: bool) | Sets whether text is kept flat (no 3D rotation). |
rotation_angle() → double | Returns the rotation angle in degrees. |
set_rotation_angle(value: double) | Sets the rotation angle in degrees. |
transform() → TextShapeType | Returns the text shape type (transform). |
set_transform(value: TextShapeType) | Sets the text shape type (transform). |
init_internal(txbody_element: pugi::xml_node, save_callback: std::function<void()>) | Initialize from an existing XML node. |
get_body_pr() → pugi::xml_node | Find the child of the txBody element. |
ensure_body_pr() → pugi::xml_node | Find or create the child of the txBody element. |
save() | Persist changes via the save callback. |
get_margin(attr: std::string_view, default_emu: int) → double | Read a margin attribute from bodyPr and convert EMU to points. |
set_margin(attr: std::string_view, value: double) | Write a margin value (in points) to bodyPr as an EMU attribute. |
resize_shape_to_fit_text(body_pr: pugi::xml_node) | Resize the parent shape to fit text content, preserving vertical center. |