Paragraph

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

Enumerations Paragraph class đại diện cho một đoạn văn bản duy nhất bên trong một TextFrame. Mỗi đoạn văn chứa một hoặc nhiều Portion đối tượng (các đoạn văn bản có định dạng đồng nhất).

Enumerations: Aspose::Slides::Foss

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

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


Enumerations

EnumerationsEnumerations
Paragraph()Tạo một đoạn mới trống.

Enumerations

EnumerationsEnumerationsEnumerations
text()EnumerationsTrả về văn bản đã nối của tất cả các phần.
set_text(const std::string&)EnumerationsThay thế toàn bộ văn bản trong đoạn này.

Giao diện IParagraph

Enumerations IParagraph giao diện (từ i_paragraph.h) định nghĩa:

EnumerationsEnumerations
text()Lấy văn bản của đoạn.
set_text(const std::string&)Đặt văn bản của đoạn.

Giao diện IParagraphFormat

Enumerations IParagraphFormat giao diện kiểm soát định dạng ở mức đoạn:

EnumerationsEnumerationsEnumerations
alignment() / set_alignment(TextAlignment)Đọc/ViếtCăn chỉnh văn bản.
depth() / set_depth(int)Đọc/ViếtĐộ sâu đề cương/độ thụt lề.
space_within() / set_space_within(double)Đọc/ViếtKhoảng cách dòng trong đoạn văn.
space_before() / set_space_before(double)Đọc/GhiKhoảng trống trước đoạn văn.
space_after() / set_space_after(double)Đọc/GhiKhoảng cách sau đoạn văn.
margin_left() / set_margin_left(double)Đọc/GhiLề trái.
margin_right() / set_margin_right(double)Đọc/GhiLề phải.
indent() / set_indent(double)Đọc/GhiThụt đầu dòng.
default_tab_size() / set_default_tab_size(double)Đọc/GhiKích thước dừng tab mặc định.
font_alignment() / set_font_alignment(FontAlignment)Đọc/GhiCăn phông chữ trong dòng.
right_to_left() / set_right_to_left(NullableBool)Đọc/GhiHướng văn bản từ phải sang trái.
east_asian_line_break() / set_east_asian_line_break(NullableBool)Đọc/GhiQuy tắc ngắt dòng Đông Á.
latin_line_break() / set_latin_line_break(NullableBool)Đọc/GhiQuy tắc ngắt dòng Latin.
hanging_punctuation() / set_hanging_punctuation(NullableBool)Đọc/GhiDấu câu treo.

ParagraphCollection

Enumerations ParagraphCollection class là một tập hợp có thể lặp lại của Paragraph đối tượng. Các phương thức chính:

EnumerationsEnumerations
size()Số đoạn văn.
remove_at(int index)Xóa đoạn văn tại chỉ mục.
begin() / end()Hỗ trợ iterator.

Xem Thêm

 Tiếng Việt