StructureAttribute

StructureAttribute

概述

StructureAttribute 是 Aspose.PDF FOSS 中用于 .NET 的类。

单个标记 PDF 结构属性(键加一个类型化的值)。

此类提供 10 个方法,用于在 .NET 程序中处理 StructureAttribute 对象。可用的方法包括:GetArrayNumberValue、GetNameValue、GetNumberValue、GetStringValue、SetArrayNumberValue、SetColorValue、SetNameValue、SetNumberValue、SetStringValue、StructureAttribute。在安装了用于 .NET 的 Aspose.PDF FOSS 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Key。

属性

名称类型访问描述
KeyAttributeKey读取属性键。

方法

签名描述
StructureAttribute(key: AttributeKey)为键创建一个尚未赋值的属性。
SetNameValue(name: AttributeName)设置 /Name 值。
SetNumberValue(value: double)设置数值。
SetArrayNumberValue(value: double?[])设置一个数字数组值。
SetColorValue(color: Aspose.Pdf.Color)设置颜色值(存储为 3 分量的 RGB 数组)。
SetStringValue(value: string)设置字符串值。
GetNameValue()/Name 值,若属性持有其他类型,则为 null。
GetNumberValue()数值,若属性持有其他类型,则为 null。
GetArrayNumberValue()数值数组,若属性持有其他类型,则为 null。
GetStringValue()字符串值,或者在属性持有其他类型时为 null。

另请参阅

 中文