ParagraphFormat

General

ParagraphFormat és una classe en Aspose.Slides FOSS per a C++.

Representa propietats de formatatge de paràgrafs.

Propietats

NameTypeAccessDescription
IBulletFormatIBulletFormatReadProvides access to the paragraph’s bullet formatting object
NullableBoolNullableBoolReadProvides access to a three‑state boolean attribute of the paragraph
FontAlignmentFontAlignmentReadProvides access to the paragraph’s font alignment setting
PortionFormatPortionFormatReadProvides access to the default format applied to portions in the paragraph

Mètodes

SignatureDescription
IBulletFormat()IBulletFormatProvides access to the paragraph’s bullet formatting object
IBulletFormat()IBulletFormat
NullableBool()NullableBoolProvides access to a three‑state boolean attribute of the paragraph
NullableBool()NullableBool
NullableBool()NullableBool
NullableBool()NullableBool
FontAlignment()FontAlignmentProvides access to the paragraph’s font alignment setting
PortionFormat()PortionFormatProvides access to the default format applied to 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.
 Català