ParagraphFormat
Overview
ParagraphFormat is a class in Aspose.Slides FOSS for C++.
Represents paragraph formatting properties.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
IBulletFormat | IBulletFormat | Read | Provides access to the paragraph’s bullet formatting object |
NullableBool | NullableBool | Read | Returns a NullableBool representing a three-state boolean for the paragraph |
FontAlignment | FontAlignment | Read | Returns the vertical alignment of the paragraph’s text relative to the line |
PortionFormat | PortionFormat | Read | Returns the default portion formatting applied to new portions in the paragraph |
Methods
| Signature | Description |
|---|---|
IBulletFormat() → IBulletFormat | Provides access to the paragraph’s bullet formatting object |
IBulletFormat() → IBulletFormat | |
NullableBool() → NullableBool | Returns a NullableBool representing a three-state boolean for the paragraph |
NullableBool() → NullableBool | |
NullableBool() → NullableBool | |
NullableBool() → NullableBool | |
FontAlignment() → FontAlignment | Returns the vertical alignment of the paragraph’s text relative to the line |
PortionFormat() → PortionFormat | Returns the default portion formatting applied to new portions in the paragraph |
PortionFormat() → PortionFormat | |
alignment() → TextAlignment | Returns 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) → NullableBool | Read 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) → double | Read 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) → double | Read 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. |