DocumentProperties — Aspose.Slides FOSS for C++ API Reference
Properties DocumentProperties คลาสนี้ให้การเข้าถึงเมตาดาต้าที่มีมาในตัวและเมตาดาต้ากำหนดเองสำหรับการนำเสนอ.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/document_properties.h>class DocumentPropertiesProperties: include/Aspose/Slides/Foss/document_properties.h
คุณสมบัติมาตรฐาน
| Properties | Properties | Properties |
|---|---|---|
set_title(const std::string&) | Properties | ตั้งค่าชื่อเอกสาร. |
set_subject(const std::string&) | Properties | ตั้งค่าหัวข้อเอกสาร. |
set_author(const std::string&) | Properties | ตั้งค่าผู้เขียนเอกสาร. |
set_keywords(const std::string&) | Properties | ตั้งค่าคำสำคัญของเอกสาร. |
set_comments(const std::string&) | Properties | ตั้งค่าความคิดเห็นของเอกสาร. |
set_category(const std::string&) | Properties | ตั้งค่าประเภทเอกสาร. |
set_content_status(const std::string&) | Properties | ตั้งค่าสถานะเนื้อหา. |
set_content_type(const std::string&) | Properties | ตั้งค่าประเภทเนื้อหา. |
set_last_saved_by(const std::string&) | Properties | ตั้งค่าผู้ที่บันทึกล่าสุด. |
set_company(const std::string&) | Properties | ตั้งค่าชื่อบริษัท. |
set_manager(const std::string&) | Properties | ตั้งค่าชื่อผู้จัดการ. |
set_name_of_application(const std::string&) | Properties | ตั้งค่าชื่อแอปพลิเคชัน. |
set_presentation_format(const std::string&) | Properties | ตั้งค่ารูปแบบการนำเสนอ. |
set_application_template(const std::string&) | Properties | ตั้งค่าเทมเพลตแอปพลิเคชัน. |
set_hyperlink_base(const std::string&) | Properties | ตั้งค่า URL ฐานของไฮเปอร์ลิงก์. |
revision_number() / set_revision_number(int) | อ่าน/เขียน | หมายเลขรุ่น. |
created_time() / set_created_time(...) | อ่าน/เขียน | เวลาประทับการสร้าง. |
last_saved_time() / set_last_saved_time(...) | อ่าน/เขียน | เวลาประทับบันทึกล่าสุด. |
last_printed() / set_last_printed(...) | อ่าน/เขียน | เวลาประทับพิมพ์ล่าสุด. |
total_editing_time() / set_total_editing_time(...) | อ่าน/เขียน | เวลาการแก้ไขทั้งหมด. |
shared_doc() / set_shared_doc(bool) | อ่าน/เขียน | ว่าเอกสารถูกแชร์หรือไม่. |
scale_crop() / set_scale_crop(bool) | อ่าน/เขียน | การตั้งค่าการครอบสเกล. |
links_up_to_date() / set_links_up_to_date(bool) | อ่าน/เขียน | ว่าลิงก์เป็นปัจจุบันหรือไม่. |
hyperlinks_changed() / set_hyperlinks_changed(bool) | อ่าน/เขียน | ว่าไฮเปอร์ลิงก์มีการเปลี่ยนแปลงหรือไม่. |
Properties
| Properties | Properties |
|---|---|
slides() | จำนวนสไลด์. |
hidden_slides() | จำนวนสไลด์ที่ซ่อนอยู่. |
notes() | จำนวนสไลด์บันทึก. |
paragraphs() | จำนวนย่อหน้าทั้งหมด. |
words() | จำนวนคำทั้งหมด. |
multimedia_clips() | จำนวนคลิปมัลติมีเดีย. |
คุณสมบัติกำหนดเอง
| Properties | Properties |
|---|---|
count_of_custom_properties() | จำนวนคุณสมบัติกำหนดเอง. |
get_custom_property_value(const std::string& name) | ดึงค่าคุณสมบัติกำหนดเอง. |
set_custom_property_value(const std::string& name, ...) | ตั้งค่าคุณสมบัติกำหนดเอง. |
get_custom_property_name(int index) | ดึงชื่อคุณสมบัติกำหนดเองตามดัชนี. |
remove_custom_property(const std::string& name) | ลบคุณสมบัติกำหนดเอง. |
contains_custom_property(const std::string& name) | ตรวจสอบว่ามีคุณสมบัติกำหนดเองหรือไม่. |
clear_custom_properties() | ลบคุณสมบัติกำหนดเองทั้งหมด. |
clear_built_in_properties() | รีเซ็ตคุณสมบัติมาตรฐานทั้งหมดเป็นค่าเริ่มต้น. |
ตัวอย่างการใช้งาน
#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;
Presentation prs;
auto& props = prs.document_properties();
props.set_title("Q1 Results");
props.set_author("Finance Team");
props.set_subject("Quarterly Review");
prs.save("q1.pptx", SaveFormat::PPTX);