DocumentProperties

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

Properties DocumentProperties คลาสนี้ให้การเข้าถึงเมตาดาต้าที่มีมาในตัวและเมตาดาต้ากำหนดเองสำหรับการนำเสนอ.

Properties: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/document_properties.h>
class DocumentProperties

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


คุณสมบัติมาตรฐาน

PropertiesPropertiesProperties
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

PropertiesProperties
slides()จำนวนสไลด์.
hidden_slides()จำนวนสไลด์ที่ซ่อนอยู่.
notes()จำนวนสไลด์บันทึก.
paragraphs()จำนวนย่อหน้าทั้งหมด.
words()จำนวนคำทั้งหมด.
multimedia_clips()จำนวนคลิปมัลติมีเดีย.

คุณสมบัติกำหนดเอง

PropertiesProperties
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);

ดูเพิ่มเติม

 ภาษาไทย