DocumentProperties — Aspose.Slides FOSS for C++ API Reference
Enumerations DocumentProperties class cung cấp quyền truy cập vào siêu dữ liệu tích hợp sẵn và tùy chỉnh cho một bản trình chiếu.
Enumerations: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/document_properties.h>class DocumentPropertiesEnumerations: include/Aspose/Slides/Foss/document_properties.h
Thuộc tính tích hợp sẵn
| Enumerations | Enumerations | Enumerations |
|---|---|---|
set_title(const std::string&) | Enumerations | Đặt tiêu đề tài liệu. |
set_subject(const std::string&) | Enumerations | Đặt chủ đề tài liệu. |
set_author(const std::string&) | Enumerations | Đặt tác giả tài liệu. |
set_keywords(const std::string&) | Enumerations | Đặt từ khóa tài liệu. |
set_comments(const std::string&) | Enumerations | Đặt nhận xét tài liệu. |
set_category(const std::string&) | Enumerations | Đặt danh mục tài liệu. |
set_content_status(const std::string&) | Enumerations | Đặt trạng thái nội dung. |
set_content_type(const std::string&) | Enumerations | Đặt loại nội dung. |
set_last_saved_by(const std::string&) | Enumerations | Đặt người lưu lần cuối. |
set_company(const std::string&) | Enumerations | Đặt tên công ty. |
set_manager(const std::string&) | Enumerations | Đặt tên người quản lý. |
set_name_of_application(const std::string&) | Enumerations | Đặt tên ứng dụng. |
set_presentation_format(const std::string&) | Enumerations | Đặt định dạng bản trình chiếu. |
set_application_template(const std::string&) | Enumerations | Đặt mẫu ứng dụng. |
set_hyperlink_base(const std::string&) | Enumerations | Đặt URL cơ sở cho siêu liên kết. |
revision_number() / set_revision_number(int) | Đọc/Ghi | Số phiên bản. |
created_time() / set_created_time(...) | Đọc/Ghi | Dấu thời gian tạo. |
last_saved_time() / set_last_saved_time(...) | Đọc/Ghi | Dấu thời gian lưu cuối cùng. |
last_printed() / set_last_printed(...) | Đọc/Ghi | Dấu thời gian in cuối cùng. |
total_editing_time() / set_total_editing_time(...) | Đọc/Ghi | Tổng thời gian chỉnh sửa. |
shared_doc() / set_shared_doc(bool) | Đọc/Ghi | Liệu tài liệu có được chia sẻ hay không. |
scale_crop() / set_scale_crop(bool) | Đọc/Ghi | Cài đặt cắt tỉ lệ. |
links_up_to_date() / set_links_up_to_date(bool) | Đọc/Ghi | Liệu các liên kết có cập nhật không. |
hyperlinks_changed() / set_hyperlinks_changed(bool) | Đọc/Ghi | Liệu các siêu liên kết đã thay đổi hay chưa. |
Enumerations
| Enumerations | Enumerations |
|---|---|
slides() | Số lượng slide. |
hidden_slides() | Số lượng slide ẩn. |
notes() | Số slide ghi chú. |
paragraphs() | Tổng số đoạn văn. |
words() | Tổng số từ. |
multimedia_clips() | Số lượng clip đa phương tiện. |
Thuộc tính tùy chỉnh
| Enumerations | Enumerations |
|---|---|
count_of_custom_properties() | Số lượng thuộc tính tùy chỉnh. |
get_custom_property_value(const std::string& name) | Lấy giá trị của thuộc tính tùy chỉnh. |
set_custom_property_value(const std::string& name, ...) | Đặt giá trị cho thuộc tính tùy chỉnh. |
get_custom_property_name(int index) | Lấy tên thuộc tính tùy chỉnh theo chỉ mục. |
remove_custom_property(const std::string& name) | Xóa một thuộc tính tùy chỉnh. |
contains_custom_property(const std::string& name) | Kiểm tra xem thuộc tính tùy chỉnh có tồn tại không. |
clear_custom_properties() | Xóa tất cả các thuộc tính tùy chỉnh. |
clear_built_in_properties() | Đặt lại tất cả các thuộc tính tích hợp về mặc định. |
Ví dụ sử dụng
#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);