Paragraph — Aspose.Slides FOSS for C++ API Reference
Properties Paragraph คลาสแสดงถึงย่อหน้าข้อความเดียวภายใน 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 คลาสคือคอลเลกชันที่สามารถวนซ้ำของ Paragraph วัตถุ. วิธีการสำคัญ:
| Properties | Properties |
|---|---|
size() | จำนวนย่อหน้า. |
remove_at(int index) | ลบย่อหน้าที่ตำแหน่งดัชนี. |
begin() / end() | การสนับสนุน Iterator. |