ParagraphFormat

ParagraphFormat

概述

ParagraphFormat 是 Aspose.Slides FOSS for C++ 中的一个类。

表示段落格式属性。

此类提供 50 个方法用于在 C++ 程序中处理 ParagraphFormat 对象。可用的方法包括:FontAlignment、IBulletFormat、NullableBool、ParagraphFormat、PortionFormat、alignment、bullet、default_portion_format、default_tab_size、depth、east_asian_line_break、font_alignment,以及另外 31 个方法。所有公共成员在安装了 Aspose.Slides FOSS for C++ 包后,对任何 C++ 应用程序均可访问。属性:FontAlignment、IBulletFormat、NullableBool、PortionFormat。

属性

名称类型访问描述
IBulletFormatIBulletFormat读取获取 i 项目符号格式。
NullableBoolNullableBool读取获取可为空的 bool。
FontAlignmentFontAlignment读取获取字体对齐方式。
PortionFormatPortionFormat读取获取部分格式。

方法

签名描述
IBulletFormat() → IBulletFormat提供对段落项目符号格式对象的访问
IBulletFormat() → IBulletFormat
NullableBool() → NullableBool返回一个 NullableBool,表示段落的三态布尔值
NullableBool() → NullableBool
NullableBool() → NullableBool
NullableBool() → NullableBool
FontAlignment() → FontAlignment返回段落文本相对于行的垂直对齐方式
PortionFormat() → PortionFormat返回在段落中新部分所使用的默认部分格式
PortionFormat() → PortionFormat
ParagraphFormat()
bullet() → IBulletFormat返回段落的项目符号格式。只读。
bullet() → IBulletFormat返回段落的项目符号格式。只读。
depth() → int返回段落深度。
set_depth(value: int)设置段落深度。
alignment() → TextAlignment返回文本对齐方式。
set_alignment(value: TextAlignment)设置文本对齐方式。
space_within() → double返回段落内部的空格(正=%,负=点)。
set_space_within(value: double)
space_before() → double返回段落前的空格。
set_space_before(value: double)
space_after() → double返回段落后的空格。
set_space_after(value: double)
east_asian_line_break() → NullableBool返回是否启用了东亚换行。
set_east_asian_line_break(value: NullableBool)
right_to_left() → NullableBool返回文本是否为从右到左。
set_right_to_left(value: NullableBool)
latin_line_break() → NullableBool返回是否已启用 latin 换行。
set_latin_line_break(value: NullableBool)
hanging_punctuation() → NullableBool返回是否启用了悬挂标点。
set_hanging_punctuation(value: NullableBool)
margin_left() → double返回左边距(单位为点)。NaN = undefined.
set_margin_left(value: double)
margin_right() → double返回右边距(单位为点)。NaN = undefined.
set_margin_right(value: double)
indent() → double返回以点为单位的缩进。NaN = undefined.
set_indent(value: double)
default_tab_size() → double返回默认的制表符大小(以点为单位)。NaN = undefined.
set_default_tab_size(value: double)
font_alignment() → FontAlignment返回字体对齐方式。
set_font_alignment(value: FontAlignment)
default_portion_format() → PortionFormat返回段落的默认部件格式。只读。
default_portion_format() → PortionFormat返回段落的默认部件格式。只读。
init_internal(ppr_element: pugi::xml_node, save_callback: std::function<void()>)从现有的 XML 节点初始化。
save()通过 save 回调持久化更改。
get_nullable_bool_attr(attr: std::string_view) → NullableBool从 pPr 属性读取 NullableBool。
set_nullable_bool_attr(attr: std::string_view, value: NullableBool)将 NullableBool 写入 pPr 属性。
get_spacing(tag: std::string_view) → double从子元素 (lnSpc, spcBef, spcAft) 读取间距。正返回值 = 百分比,负返回值 = 点。NaN = 未定义。
set_spacing(tag: std::string_view, value: double)将间距写入子元素。正值 = 百分比 (spcPct),负值 = 点数 (spcPts)。NaN 会删除。
get_emu_attr(attr: std::string_view) → double读取基于 EMU 的属性并转换为点数。NaN = 未定义。
set_emu_attr(attr: std::string_view, value: double)将点值写为 EMU 属性。NaN 会删除该属性。

另请参阅

 中文