ParagraphFormat

ParagraphFormat

Overview

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

Represents paragraph formatting properties.

This class declares 45 methods for ParagraphFormat objects in C++ programs. Available methods include: IBulletFormat, ParagraphFormat, PortionFormat, alignment, bullet, default_portion_format, default_tab_size, depth, east_asian_line_break, font_alignment, get_emu_attr, get_nullable_bool_attr, and 29 additional methods. Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Accessor methods: IBulletFormat, PortionFormat.

Accessor Methods

NameTypeAccessDescription
IBulletFormatIBulletFormatReadGets the i bullet format.
PortionFormatPortionFormatReadGets the portion format.

Methods

SignatureDescription
IBulletFormat() → IBulletFormatReturns bullet format of the paragraph. Read-only.
IBulletFormat() → IBulletFormatProvides access to the paragraph’s bullet formatting object
PortionFormat() → PortionFormatReturns default portion format of a paragraph. Read-only.
PortionFormat() → PortionFormatReturns the default portion formatting applied to new portions in the paragraph
ParagraphFormat()Calls ParagraphFormat on this ParagraphFormat instance.
bullet() → IBulletFormatReturns bullet format of the paragraph. Read-only.
bullet() → IBulletFormatCalls bullet on this ParagraphFormat instance.
depth() → intReturns the paragraph depth ( @lvl).
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)Calls set_space_within(value) on this ParagraphFormat instance.
space_before() → doubleReturns the space before the paragraph.
set_space_before(value: double)Calls set_space_before(value) on this ParagraphFormat instance.
space_after() → doubleReturns the space after the paragraph.
set_space_after(value: double)Calls set_space_after(value) on this ParagraphFormat instance.
east_asian_line_break() → NullableBoolReturns whether east asian line break is enabled.
set_east_asian_line_break(value: NullableBool)Calls set_east_asian_line_break(value) on this ParagraphFormat instance.
right_to_left() → NullableBoolReturns whether text is right-to-left.
set_right_to_left(value: NullableBool)Calls set_right_to_left(value) on this ParagraphFormat instance.
latin_line_break() → NullableBoolReturns whether latin line break is enabled.
set_latin_line_break(value: NullableBool)Calls set_latin_line_break(value) on this ParagraphFormat instance.
hanging_punctuation() → NullableBoolReturns whether hanging punctuation is enabled.
set_hanging_punctuation(value: NullableBool)Calls set_hanging_punctuation(value) on this ParagraphFormat instance.
margin_left() → doubleReturns the left margin in points. NaN = undefined.
set_margin_left(value: double)Calls set_margin_left(value) on this ParagraphFormat instance.
margin_right() → doubleReturns the right margin in points. NaN = undefined.
set_margin_right(value: double)Calls set_margin_right(value) on this ParagraphFormat instance.
indent() → doubleReturns the indent in points. NaN = undefined.
set_indent(value: double)Calls set_indent(value) on this ParagraphFormat instance.
default_tab_size() → doubleReturns the default tab size in points. NaN = undefined.
set_default_tab_size(value: double)Calls set_default_tab_size(value) on this ParagraphFormat instance.
font_alignment() → FontAlignmentReturns the font alignment.
set_font_alignment(value: FontAlignment)Calls set_font_alignment(value) on this ParagraphFormat instance.
default_portion_format() → PortionFormatReturns default portion format of a paragraph. Read-only.
default_portion_format() → PortionFormatCalls default_portion_format on this ParagraphFormat instance.
init_internal(ppr_element: pugi::xml_node, save_callback: std::function<void()>, p_element: pugi::xml_node)Initialize from an existing XML node. carry no at all, so without the parent there is nowhere to put the first property that gets set, and every setter is a silent no-op. Given it, the element is created on the first write and not before — an empty added to every paragraph on load would change files nobody edited.
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