Paragraph — Aspose.Slides FOSS for C++ API Reference
Properties Paragraph class 表示内部的单个文本段落 TextFrame.。每个段落包含一个或多个 Portion 对象(具有统一格式的文本运行)。.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/paragraph.h>class ParagraphProperties: include/Aspose/Slides/Foss/paragraph.h
Properties
| Properties | Properties |
|---|---|
Paragraph() | 创建一个新的空段落。. |
Properties
| Properties | Properties | Properties |
|---|---|---|
text() | Properties | 返回所有部分的连接文本。. |
set_text(const std::string&) | Properties | 替换此段落中的所有文本。. |
IParagraph 接口
Properties IParagraph 接口(来自 i_paragraph.h)定义::
| Properties | Properties |
|---|---|
text() | 获取段落文本。. |
set_text(const std::string&) | 设置段落文本。. |
IParagraphFormat 接口
Properties IParagraphFormat 接口控制段落级别的格式设置::
| Properties | Properties | Properties |
|---|---|---|
alignment() / set_alignment(TextAlignment) | 读/写 | 文本对齐。. |
depth() / set_depth(int) | 读/写 | 大纲/缩进深度。. |
space_within() / set_space_within(double) | 读/写 | 段落内的行距。. |
space_before() / set_space_before(double) | 读/写 | 段落前的空格。. |
space_after() / set_space_after(double) | 读/写 | 段落后空格。. |
margin_left() / set_margin_left(double) | 读/写 | 左边距。. |
margin_right() / set_margin_right(double) | 读/写 | 右边距。. |
indent() / set_indent(double) | 读/写 | 首行缩进。. |
default_tab_size() / set_default_tab_size(double) | 读/写 | 默认制表位大小。. |
font_alignment() / set_font_alignment(FontAlignment) | 读/写 | 行内字体对齐方式。. |
right_to_left() / set_right_to_left(NullableBool) | 读/写 | 从右到左的文本方向。. |
east_asian_line_break() / set_east_asian_line_break(NullableBool) | 读/写 | 东亚换行规则。. |
latin_line_break() / set_latin_line_break(NullableBool) | 读/写 | 拉丁换行规则。. |
hanging_punctuation() / set_hanging_punctuation(NullableBool) | 读/写 | 悬挂标点。. |
ParagraphCollection
Properties ParagraphCollection class 是一个可迭代的集合 Paragraph 对象。关键方法::
| Properties | Properties |
|---|---|
size() | 段落数量。. |
remove_at(int index) | 删除索引处的段落。. |
begin() / end() | 迭代器支持。. |