ParagraphFormat

ParagraphFormat

Overview

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

Represents paragraph formatting properties.

Properties

NameTypeAccessDescription
IBulletFormatIBulletFormatReadProvides access to the paragraph’s bullet formatting object
NullableBoolNullableBoolReadReturns a NullableBool representing a three-state boolean for the paragraph
FontAlignmentFontAlignmentReadReturns the vertical alignment of the paragraph’s text relative to the line
PortionFormatPortionFormatReadReturns the default portion formatting applied to new portions in the paragraph

Methods

SignatureDescription
IBulletFormat()IBulletFormatProvides access to the paragraph’s bullet formatting object
IBulletFormat()IBulletFormat
NullableBool()NullableBoolReturns a NullableBool representing a three-state boolean for the paragraph
NullableBool()NullableBool
NullableBool()NullableBool
NullableBool()NullableBool
FontAlignment()FontAlignmentReturns the vertical alignment of the paragraph’s text relative to the line
PortionFormat()PortionFormatReturns the default portion formatting applied to new portions in the paragraph
PortionFormat()PortionFormat
alignment()TextAlignmentReturns the text alignment.
set_alignment(value: TextAlignment)Sets the text alignment.
init_internal(ppr_element: pugi::xml_node, save_callback: std::function<void()>)Initialize from an existing XML node.
save()Persist changes via the save callback.
get_nullable_bool_attr(attr: std::string_view)NullableBoolRead a NullableBool from a pPr attribute.
set_nullable_bool_attr(attr: std::string_view, value: NullableBool)Write a NullableBool to a pPr attribute.
get_spacing(tag: std::string_view)doubleRead spacing from a child element (lnSpc, spcBef, spcAft). Positive return = percentage, negative return = points. NaN = undefined.
set_spacing(tag: std::string_view, value: double)Write spacing to a child element. Positive value = percentage (spcPct), negative = points (spcPts). NaN removes.
get_emu_attr(attr: std::string_view)doubleRead an EMU-based attribute and convert to points. NaN = undefined.
set_emu_attr(attr: std::string_view, value: double)Write a point value as an EMU attribute. NaN removes the attribute.

See Also