TextFrameFormat

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

NameTypeAccessDescription
NullableBoolNullableBoolReadGets the nullable bool.
TextAnchorTypeTextAnchorTypeReadGets the text anchor type.
TextVerticalTypeTextVerticalTypeReadGets the text vertical type.
TextAutofitTypeTextAutofitTypeReadGets the text autofit type.
ThreeDFormatThreeDFormatReadGets the three d format.
TextShapeTypeTextShapeTypeReadGets the text shape type.

Methods

SignatureDescription
NullableBool()NullableBoolReturns the nullable boolean indicating a specific text frame setting
TextAnchorType()TextAnchorTypeProperty gets or sets the text anchor alignment within the frame
NullableBool()NullableBool
TextVerticalType()TextVerticalTypeProperty gets or sets the vertical text orientation
TextAutofitType()TextAutofitTypeProperty gets or sets the autofit behavior for the text
ThreeDFormat()ThreeDFormatProperty provides access to the 3D formatting of the text frame
ThreeDFormat()ThreeDFormat
TextShapeType()TextShapeTypeProperty gets or sets the shape type of the text frame
TextFrameFormat()
margin_left()doubleReturns the left margin in points. NaN = undefined.
set_margin_left(value: double)Sets the left margin in points.
margin_right()doubleReturns the right margin in points. NaN = undefined.
set_margin_right(value: double)Sets the right margin in points.
margin_top()doubleReturns the top margin in points. NaN = undefined.
set_margin_top(value: double)Sets the top margin in points.
margin_bottom()doubleReturns the bottom margin in points. NaN = undefined.
set_margin_bottom(value: double)Sets the bottom margin in points.
wrap_text()NullableBoolReturns whether text wraps.
set_wrap_text(value: NullableBool)Sets whether text wraps.
anchoring_type()TextAnchorTypeReturns the text anchor type.
set_anchoring_type(value: TextAnchorType)Sets the text anchor type.
center_text()NullableBoolReturns whether text is centered.
set_center_text(value: NullableBool)Sets whether text is centered.
text_vertical_type()TextVerticalTypeReturns the text vertical type.
set_text_vertical_type(value: TextVerticalType)Sets the text vertical type.
autofit_type()TextAutofitTypeReturns the autofit type.
set_autofit_type(value: TextAutofitType)Sets the autofit type.
column_count()intReturns the number of columns.
set_column_count(value: int)Sets the number of columns.
column_spacing()doubleReturns the column spacing in points.
set_column_spacing(value: double)Sets the column spacing in points.
three_d_format()ThreeDFormatReturns the ThreeDFormat object that represents 3D effect properties for text. Read-only.
three_d_format()ThreeDFormatReturns the ThreeDFormat object that represents 3D effect properties for text. Read-only.
keep_text_flat()boolReturns 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()doubleReturns the rotation angle in degrees.
set_rotation_angle(value: double)Sets the rotation angle in degrees.
transform()TextShapeTypeReturns 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_nodeFind the child of the txBody element.
ensure_body_pr()pugi::xml_nodeFind or create the child of the txBody element.
save()Persist changes via the save callback.
get_margin(attr: std::string_view, default_emu: int)doubleRead 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.

See Also