DocumentProperties

DocumentProperties

概述

DocumentProperties 是 Aspose.Slides FOSS 中用于 .NET 的类。继承自:IDocumentProperties。

表示演示文稿的元数据属性,使用惰性初始化封装 OPC 核心、应用程序和自定义属性部分。

此类提供 7 个方法,用于在 .NET 程序中处理 DocumentProperties 对象。可用的方法包括:ClearBuiltInProperties、ClearCustomProperties、ContainsCustomProperty、GetCustomPropertyName、GetCustomPropertyValue、RemoveCustomProperty、SetCustomPropertyValue。在安装了 Aspose.Slides FOSS for .NET 包之后,所有公共成员对任何 .NET 应用程序均可访问。属性:AppVersion、ApplicationTemplate、Author、Category、Comments、Company,以及其他 28 项。

属性

名称类型访问描述
Titlestring读写获取或设置标题。
Subjectstring读写获取或设置主题。
Authorstring读写获取或设置作者。
Keywordsstring读写获取或设置关键字。
Commentsstring读写获取或设置注释。
Categorystring读写获取或设置类别。
ContentStatusstring读写获取或设置内容状态。
ContentTypestring读写获取或设置内容类型。
LastSavedBystring读写获取或设置最后一次保存者。
RevisionNumberint读写获取或设置修订号。
CreatedTimeDateTime?读写获取或设置创建时间。
LastSavedTimeDateTime?读写获取或设置最后保存的时间。
LastPrintedDateTime?读写获取或设置上次打印的时间。
AppVersionstring读取获取应用程序版本。
NameOfApplicationstring读写获取或设置应用程序的名称。
Companystring读写获取或设置公司。
Managerstring读写获取或设置管理器。
PresentationFormatstring读写获取或设置演示格式。
ApplicationTemplatestring读写获取或设置应用程序模板。
HyperlinkBasestring读写获取或设置超链接基址。
TotalEditingTimeTimeSpan读写获取或设置总编辑时间。
SharedDocbool读写获取或设置共享 doc。
ScaleCropbool读写获取或设置比例裁剪。
LinksUpToDatebool读写获取或设置链接的最新状态。
HyperlinksChangedbool读写获取或设置已更改的超链接。
Slidesint读取获取幻灯片。
HiddenSlidesint读取获取隐藏的幻灯片。
Notesint读取获取备注。
Paragraphsint读取获取段落。
Wordsint读取获取单词。
MultimediaClipsint读取获取多媒体剪辑。
HeadingPairsIReadOnlyList<IHeadingPair>读取获取标题对。
TitlesOfPartsIReadOnlyList<string>读取获取部件的标题。
CountOfCustomPropertiesint读取获取自定义属性的计数。

方法

签名描述
GetCustomPropertyValue(name: string)返回具有给定名称的自定义属性的值
SetCustomPropertyValue(name: string, value: object)设置自定义属性值。
GetCustomPropertyName(index: int)返回给定索引处的自定义属性的名称
RemoveCustomProperty(name: string)删除指定名称的自定义属性
ContainsCustomProperty(name: string)如果存在具有指定名称的自定义属性,则返回 true
ClearCustomProperties()从文档中移除所有自定义属性
ClearBuiltInProperties()将所有内置文档属性重置为默认值

另请参阅

 中文