TextFrameFormat

TextFrameFormat

Overview

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

Represents text frame formatting properties.

Properties

NameTypeAccessDescription
NullableBoolNullableBoolReadReturns the nullable boolean indicating a specific text frame setting
TextAnchorTypeTextAnchorTypeReadProperty gets or sets the text anchor alignment within the frame
TextVerticalTypeTextVerticalTypeReadProperty gets or sets the vertical text orientation
TextAutofitTypeTextAutofitTypeReadProperty gets or sets the autofit behavior for the text
ThreeDFormatThreeDFormatReadProperty provides access to the 3D formatting of the text frame
TextShapeTypeTextShapeTypeReadProperty gets or sets the shape type of the text frame

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
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