DocumentProperties

DocumentProperties class

表示演示文稿的属性。

public class DocumentProperties : IDocumentProperties, IGenericCloneable<IDocumentProperties>

构造函数

姓名描述
DocumentProperties()初始化类DocumentProperties的新实例。

特性

姓名描述
ApplicationTemplate { get; set; }返回或设置应用程序的模板。 读/写String。
AppVersion { get; }返回应用程序版本。 只读String。
Author { get; set; }返回或设置演示文稿的作者。 读/写String。
Category { get; set; }返回或设置演示文稿的类别。 读/写String。
Comments { get; set; }返回或设置演示文稿的注释。 读/写String。
Company { get; set; }返回或设置公司属性。 读/写String。
ContentStatus { get; set; }返回或设置演示文稿的内容状态。 读/写String。
ContentType { get; set; }返回或设置演示文稿的内容类型。 读/写String。
CountOfCustomProperties { get; }返回集合中实际包含的自定义属性的数量。 只读Int32。
CreatedTime { get; set; }返回创建演示文稿的日期。 读/写DateTime。
HyperlinkBase { get; set; }返回或设置 HyperlinkBase 文档属性。 读/写String。
Item { get; set; }返回或设置与指定名称关联的自定义属性。 读/写Object。
Keywords { get; set; }返回或设置演示文稿的关键字。 读/写String。
LastPrinted { get; set; }返回上次打印演示文稿的日期。 读/写DateTime。
LastSavedBy { get; set; }返回或设置最后修改演示文稿的人的姓名。 读/写String。
LastSavedTime { get; set; }返回上次修改演示文稿的日期。 在 Presentation.DocumentProperties 的情况下为只读(因为它将在 IPresentation 对象保存过程中在内部更新)。 可以通过方法返回的 DocumentProperties 实例进行更改ReadDocumentProperties 请参见:::R5 中的示例:M:Aspose.Slides.IPresentationInfo.UpdateDocumentProperties(Aspose.Slides.IDocumentProperties):::方法总结。
Manager { get; set; }返回或设置管理器属性。 读/写String。
NameOfApplication { get; set; }返回或设置应用程序的名称。 读/写String。
PresentationFormat { get; set; }返回或设置演示文稿的预期格式。 读/写String。
RevisionNumber { get; set; }返回或设置演示版本号。 读/写Int32。
SharedDoc { get; set; }确定演示文稿是否在多人之间共享。 读/写Boolean。
Subject { get; set; }返回或设置演示的主题。 读/写String。
Title { get; set; }返回或设置演示文稿的标题。 读/写String。
TotalEditingTime { get; set; }演示文稿的总编辑时间。 读/写TimeSpan。

方法

姓名描述
ClearBuiltInProperties()清除并设置所有内置属性的默认值。
ClearCustomProperties()删除所有自定义属性。
Clone()克隆当前对象
CloneT()克隆当前对象
ContainsCustomProperty(string)检查具有指定名称的自定义属性的存在。
GetCustomPropertyName(int)返回指定索引处的自定义属性名称。
GetCustomPropertyValue(string, out bool)从自定义属性中获取命名布尔值。
GetCustomPropertyValue(string, out DateTime)从自定义属性中获取命名的 DateTime 值。
GetCustomPropertyValue(string, out double)从自定义属性中获取命名的双精度值。
GetCustomPropertyValue(string, out float)从自定义属性中获取命名的浮点值。
GetCustomPropertyValue(string, out int)从自定义属性中获取命名整数值。
GetCustomPropertyValue(string, out string)从自定义属性中获取命名字符串值。
RemoveCustomProperty(string)删除与指定名称关联的自定义属性。
SetCustomPropertyValue(string, bool)设置命名布尔自定义属性。
SetCustomPropertyValue(string, DateTime)设置命名的 DateTime 自定义属性。
SetCustomPropertyValue(string, double)设置命名双自定义属性。
SetCustomPropertyValue(string, float)设置命名浮点自定义属性。
SetCustomPropertyValue(string, int)设置命名整数自定义属性。
SetCustomPropertyValue(string, string)设置命名字符串自定义属性。

也可以看看