DocumentProperties

DocumentProperties

概述

DocumentProperties 是 Aspose.Slides FOSS for C++ 中的一个类。

表示演示文稿的属性。

此类在 C++ 程序中提供了 67 个用于处理 DocumentProperties 对象的方法。可用的方法包括:DocumentProperties、app_version、application_template、author、category、clear_built_in_properties、clear_custom_properties、comments、company、contains_custom_property、content_status、content_type,以及另外 54 个方法。安装 Aspose.Slides FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:DocumentProperties。

属性

名称类型访问描述
DocumentPropertiesDocumentProperties读取获取文档属性。

方法

签名描述
DocumentProperties() → DocumentProperties提供对 DocumentProperties 对象的访问
DocumentProperties()
title() → std::string返回演示文稿的标题.
set_title(value: std::string)设置演示文稿的标题。
subject() → std::string返回演示文稿的主题。
set_subject(value: std::string)设置演示文稿的主题。
author() → std::string返回演示文稿的作者。
set_author(value: std::string)设置演示文稿的作者。
keywords() → std::string返回演示文稿的关键词。
set_keywords(value: std::string)设置演示文稿的关键字。
comments() → std::string返回演示文稿的评论。
set_comments(value: std::string)设置演示文稿的注释。
category() → std::string返回演示文稿的类别。
set_category(value: std::string)设置演示文稿的类别。
content_status() → std::string返回演示文稿的内容状态。
set_content_status(value: std::string)设置演示文稿的内容状态。
content_type() → std::string返回演示文稿的内容类型。
set_content_type(value: std::string)设置演示文稿的内容类型。
last_saved_by() → std::string返回最后修改演示文稿的人的姓名。
set_last_saved_by(value: std::string)设置最后修改此演示文稿的人的名称。
revision_number() → int返回演示文稿的修订号。
set_revision_number(value: int)设置演示文稿的修订号。
created_time() → std::optional<std::chrono::system_clock::time_point>返回演示文稿的创建日期。值为 UTC。
set_created_time(value: std::optional<std::chrono::system_clock::time_point>)设置演示文稿的创建日期。
last_saved_time() → std::optional<std::chrono::system_clock::time_point>返回演示文稿上次修改的日期。值为 UTC 时间。
set_last_saved_time(value: std::optional<std::chrono::system_clock::time_point>)设置演示文稿上次修改的日期。
last_printed() → std::optional<std::chrono::system_clock::time_point>返回演示文稿上次打印的日期。
set_last_printed(value: std::optional<std::chrono::system_clock::time_point>)设置演示文稿上次打印的日期。
app_version() → std::string返回应用程序版本。只读。
name_of_application() → std::string返回应用程序的名称。
set_name_of_application(value: std::string)设置应用程序的名称。
company() → std::string返回 company 属性。
set_company(value: std::string)设置公司属性。
manager() → std::string返回 manager 属性。
set_manager(value: std::string)设置 manager 属性。
presentation_format() → std::string返回演示文稿的预期格式。
set_presentation_format(value: std::string)设置演示文稿的预期格式。
application_template() → std::string返回应用程序的模板。
set_application_template(value: std::string)设置应用程序的模板。
hyperlink_base() → std::string返回 HyperlinkBase 文档属性。
set_hyperlink_base(value: std::string)设置 HyperlinkBase 文档属性。
total_editing_time() → std::chrono::minutes返回演示文稿的总编辑时间。
set_total_editing_time(value: std::chrono::minutes)设置演示文稿的总编辑时间。
shared_doc() → bool判断演示文稿是否在多个人之间共享。
set_shared_doc(value: bool)设置演示文稿是否在多个人之间共享。
scale_crop() → bool指示文档缩略图的显示模式。
set_scale_crop(value: bool)设置文档缩略图的显示模式。
links_up_to_date() → bool指示文档中的超链接是否是最新的。
set_links_up_to_date(value: bool)设置文档中的超链接是否是最新的。
hyperlinks_changed() → bool指定一个或多个超链接仅在此部分被更新。
set_hyperlinks_changed(value: bool)设置是否已更改超链接。
slides() → int返回幻灯片的总数。只读。
hidden_slides() → int返回隐藏幻灯片的数量。只读。
notes() → int返回带备注的幻灯片数量。只读。
paragraphs() → int返回段落的总数。只读。
words() → int返回单词的总数。只读。
multimedia_clips() → int返回多媒体剪辑的总数。只读。
heading_pairs() → std::vector<HeadingPair>返回指示文档部分分组的标题对。只读。
titles_of_parts() → std::vector<std::string>返回文档部分的标题。只读。
count_of_custom_properties() → int返回自定义属性的数量。
get_custom_property_value(name: std::string_view, out_value: std::any) → bool通过名称获取自定义属性值。通过 out 参数返回该值。如果属性存在则返回 true,否则返回 false。
set_custom_property_value(name: std::string_view, value: std::any)按名称设置自定义属性值。
get_custom_property_name(index: int) → std::string返回给定索引处的自定义属性的名称。
remove_custom_property(name: std::string_view) → bool按名称移除自定义属性。如果已移除则返回 true。
contains_custom_property(name: std::string_view) → bool返回是否存在具有给定名称的自定义属性。
clear_custom_properties()移除所有自定义属性。
clear_built_in_properties()清除所有内置属性,将其重置为默认值。

另请参阅

 中文