ParagraphFormat
Vue de l’ensemble
‘ParagraphFormat’ est une classe dans Aspose.Slides FOSS pour C++.
Représente les propriétés de mise en forme de paragraphe.
Cette classe fournit 50 méthodes pour travailler avec des objets de ParagraphFormat dans les programmes C++. Les méthodologies disponibles comprennent: ‘FontAlignment’, ‘IBulletFormate’, NullableBool', ‘ParagrafFormats’, 'PortionFormates', ’alignment’, ‘bullet’, default_portion_format, 'de default-tab_size , ‘depth’ , east_asian_line_break et 31 méthode supplémentaires. Tous les membres publics sont accessibles à toute application C ++ après l’installation de l’Aspose.Slides FOSS pour le package C+. Propriétés : ‘Alegment’ ; ‘Ibuletformat’, nullabout, `Formato’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
IBulletFormat | IBulletFormat | Read | Gets the i bullet format. |
NullableBool | NullableBool | Read | Gets the nullable bool. |
FontAlignment | FontAlignment | Read | Gets the font alignment. |
PortionFormat | PortionFormat | Read | Gets the portion format. |
méthodes
| 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 | |
ParagraphFormat() | |
bullet() → IBulletFormat | Returns bullet format of the paragraph. Read-only. |
bullet() → IBulletFormat | Returns bullet format of the paragraph. Read-only. |
depth() → int | Returns the paragraph depth. |
set_depth(value: int) | Sets the paragraph depth. |
alignment() → TextAlignment | Returns the text alignment. |
set_alignment(value: TextAlignment) | Sets the text alignment. |
space_within() → double | Returns the space within the paragraph (positive=%, negative=points). |
set_space_within(value: double) | |
space_before() → double | Returns the space before the paragraph. |
set_space_before(value: double) | |
space_after() → double | Returns the space after the paragraph. |
set_space_after(value: double) | |
east_asian_line_break() → NullableBool | Returns whether east asian line break is enabled. |
set_east_asian_line_break(value: NullableBool) | |
right_to_left() → NullableBool | Returns whether text is right-to-left. |
set_right_to_left(value: NullableBool) | |
latin_line_break() → NullableBool | Returns whether latin line break is enabled. |
set_latin_line_break(value: NullableBool) | |
hanging_punctuation() → NullableBool | Returns whether hanging punctuation is enabled. |
set_hanging_punctuation(value: NullableBool) | |
margin_left() → double | Returns the left margin in points. NaN = undefined. |
set_margin_left(value: double) | |
margin_right() → double | Returns the right margin in points. NaN = undefined. |
set_margin_right(value: double) | |
indent() → double | Returns the indent in points. NaN = undefined. |
set_indent(value: double) | |
default_tab_size() → double | Returns the default tab size in points. NaN = undefined. |
set_default_tab_size(value: double) | |
font_alignment() → FontAlignment | Returns the font alignment. |
set_font_alignment(value: FontAlignment) | |
default_portion_format() → PortionFormat | Returns default portion format of a paragraph. Read-only. |
default_portion_format() → PortionFormat | Returns 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) → 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. |
Voir aussi
- Aspose.Slides - référence API d’entreprise