Paragraph

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

Properties Paragraph คลาสแสดงถึงย่อหน้าข้อความเดียวภายใน 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 คลาสคือคอลเลกชันที่สามารถวนซ้ำของ Paragraph วัตถุ. วิธีการสำคัญ:

PropertiesProperties
size()จำนวนย่อหน้า.
remove_at(int index)ลบย่อหน้าที่ตำแหน่งดัชนี.
begin() / end()การสนับสนุน Iterator.

ดูเพิ่มเติม

 ภาษาไทย