Paragraph

Paragraph — Aspose.Slides FOSS for C++ API Reference

Properties Paragraph class 表示内部的单个文本段落 TextFrame.。每个段落包含一个或多个 Portion 对象(具有统一格式的文本运行)。.

Properties: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/paragraph.h>
class Paragraph

Properties: include/Aspose/Slides/Foss/paragraph.h


Properties

PropertiesProperties
Paragraph()创建一个新的空段落。.

Properties

PropertiesPropertiesProperties
text()Properties返回所有部分的连接文本。.
set_text(const std::string&)Properties替换此段落中的所有文本。.

IParagraph 接口

Properties IParagraph 接口(来自 i_paragraph.h)定义::

PropertiesProperties
text()获取段落文本。.
set_text(const std::string&)设置段落文本。.

IParagraphFormat 接口

Properties IParagraphFormat 接口控制段落级别的格式设置::

PropertiesPropertiesProperties
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 对象。关键方法::

PropertiesProperties
size()段落数量。.
remove_at(int index)删除索引处的段落。.
begin() / end()迭代器支持。.

另见

 中文