ParagraphFormat

ParagraphFormat

Overview

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

Represents paragraph formatting properties.

This class provides 50 methods for working with ParagraphFormat objects in C++ programs. Available methods include: FontAlignment, IBulletFormat, NullableBool, ParagraphFormat, PortionFormat, alignment, bullet, default_portion_format, default_tab_size, depth, east_asian_line_break, font_alignment, and 31 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: FontAlignment, IBulletFormat, NullableBool, PortionFormat.

Properties

NameTypeAccessDescription
IBulletFormatIBulletFormatReadGets the i bullet format.
NullableBoolNullableBoolReadGets the nullable bool.
FontAlignmentFontAlignmentReadGets the font alignment.
PortionFormatPortionFormatReadGets the portion format.

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
ParagraphFormat()
bullet() → IBulletFormatReturns bullet format of the paragraph. Read-only.
bullet() → IBulletFormatReturns bullet format of the paragraph. Read-only.
depth() → intReturns the paragraph depth.
set_depth(value: int)Sets the paragraph depth.
alignment() → TextAlignmentReturns the text alignment.
set_alignment(value: TextAlignment)Sets the text alignment.
space_within() → doubleReturns the space within the paragraph (positive=%, negative=points).
set_space_within(value: double)
space_before() → doubleReturns the space before the paragraph.
set_space_before(value: double)
space_after() → doubleReturns the space after the paragraph.
set_space_after(value: double)
east_asian_line_break() → NullableBoolReturns whether east asian line break is enabled.
set_east_asian_line_break(value: NullableBool)
right_to_left() → NullableBoolReturns whether text is right-to-left.
set_right_to_left(value: NullableBool)
latin_line_break() → NullableBoolReturns whether latin line break is enabled.
set_latin_line_break(value: NullableBool)
hanging_punctuation() → NullableBoolReturns whether hanging punctuation is enabled.
set_hanging_punctuation(value: NullableBool)
margin_left() → doubleReturns the left margin in points. NaN = undefined.
set_margin_left(value: double)
margin_right() → doubleReturns the right margin in points. NaN = undefined.
set_margin_right(value: double)
indent() → doubleReturns the indent in points. NaN = undefined.
set_indent(value: double)
default_tab_size() → doubleReturns the default tab size in points. NaN = undefined.
set_default_tab_size(value: double)
font_alignment() → FontAlignmentReturns the font alignment.
set_font_alignment(value: FontAlignment)
default_portion_format() → PortionFormatReturns default portion format of a paragraph. Read-only.
default_portion_format() → PortionFormatReturns default portion format of a paragraph. Read-only.
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

 English