TextFrameFormat
Overview
TextFrameFormat is a class in Aspose.Slides FOSS for C++.
Represents text frame formatting properties.
This class provides 46 methods for working with TextFrameFormat objects in C++ programs.
Available methods include: NullableBool, TextAnchorType, TextAutofitType, TextFrameFormat, TextShapeType, TextVerticalType, ThreeDFormat, anchoring_type, autofit_type, center_text, column_count, column_spacing, and 31 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: NullableBool, TextAnchorType, TextAutofitType, TextShapeType, TextVerticalType, ThreeDFormat.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
NullableBool | NullableBool | Read | Gets the nullable bool. |
TextAnchorType | TextAnchorType | Read | Gets the text anchor type. |
TextVerticalType | TextVerticalType | Read | Gets the text vertical type. |
TextAutofitType | TextAutofitType | Read | Gets the text autofit type. |
ThreeDFormat | ThreeDFormat | Read | Gets the three d format. |
TextShapeType | TextShapeType | Read | Gets the text shape type. |
Methods
| Signature | Description |
|---|---|
NullableBool() → NullableBool | Returns the nullable boolean indicating a specific text frame setting |
TextAnchorType() → TextAnchorType | Property gets or sets the text anchor alignment within the frame |
NullableBool() → NullableBool | |
TextVerticalType() → TextVerticalType | Property gets or sets the vertical text orientation |
TextAutofitType() → TextAutofitType | Property gets or sets the autofit behavior for the text |
ThreeDFormat() → ThreeDFormat | Property provides access to the 3D formatting of the text frame |
ThreeDFormat() → ThreeDFormat | |
TextShapeType() → TextShapeType | Property gets or sets the shape type of the text frame |
TextFrameFormat() | |
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. |