|
Foxit PDF SDK
|
类方法 | |
| (BOOL) | + isArrayAttributeValueType: |
| 检查输入的属性值类型是否表示数组。 更多... | |
| (FSLRStructureElementAttributeType) | + parseAttributeType: |
| 解析属性类型的字符串表示并获取此属性类型的枚举值。 更多... | |
| (NSString *) | + stringifyAttributeType: |
| 将指定属性类型的枚举值转换为简短且易记的字符串(文本)表示。 更多... | |
| (NSString *) | + stringifyEnumVariant: |
| 将指定属性值枚举的枚举值转换为简短且易记的字符串(文本)表示。 更多... | |
类方法 继承自 FSLRElement | |
| (NSString *) | + stringifyElementType: |
| 将指定元素类型的枚举值转换为简短且易记的字符串(文本)表示。 更多... | |
此类表示结构元素。结构元素可用于构造树,如图形结构元素、段落 结构元素、跨度结构元素等。
| - (unsigned int) getAttributeValueARGB: | (FSLRStructureElementAttributeType) | type | |
| index: | (int) | index | |
获取指定属性类型的ARGB值(由索引指定)。
此函数适用于值类型为 FSLRStructureElementAttributeValueTypeARGB 或 FSLRStructureElementAttributeValueTypeARGBArray 的属性。对于其他值类型,此函数将返回 0。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| [in] | index | 指定要检索哪个值的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getAttributeValueCount: 返回。 |
| - (int) getAttributeValueCount: | (FSLRStructureElementAttributeType) | type |
获取指定属性类型的值数量。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| - (FSLRStructureElement *) getAttributeValueElement: | (FSLRStructureElementAttributeType) | type | |
| index: | (int) | index | |
获取指定属性类型的结构元素对象(由索引指定)。
此函数适用于值类型为 FSLRStructureElementAttributeValueTypeElement 或 FSLRStructureElementAttributeValueTypeElementArray 的属性。对于其他值类型,此函数将返回一个结构元素, 其函数 LRStructureElement::IsEmpty 返回 YES。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| [in] | index | 指定要检索哪个值的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getAttributeValueCount: 返回。 |
| - (FSLRStructureElementAttributeValueEnum) getAttributeValueEnum: | (FSLRStructureElementAttributeType) | type | |
| index: | (int) | index | |
获取指定属性类型的枚举值(由索引指定)。
此函数适用于值类型为 FSLRStructureElementAttributeValueTypeEnum 或 FSLRStructureElementAttributeValueTypeEnumArray 的属性。对于其他值类型,此函数将返回 FSLRStructureElementAttributeValueEnumInvalid。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| [in] | index | 指定要检索哪个值的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getAttributeValueCount: 返回。 |
| - (float) getAttributeValueFloat: | (FSLRStructureElementAttributeType) | type | |
| index: | (int) | index | |
获取指定属性类型的浮点值(由索引指定)。
此函数适用于值类型为 FSLRStructureElementAttributeValueTypeFloat 或 FSLRStructureElementAttributeValueTypeFloatArray 的属性。对于其他值类型,此函数将返回 0.0。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| [in] | index | 指定要检索哪个值的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getAttributeValueCount: 返回。 |
| - (int) getAttributeValueInt32: | (FSLRStructureElementAttributeType) | type | |
| index: | (int) | index | |
获取指定属性类型的整数值(由索引指定)。
此函数适用于值类型为 FSLRStructureElementAttributeValueTypeInt32 或 FSLRStructureElementAttributeValueTypeInt32Array 的属性。对于其他值类型,此函数将返回 0。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| [in] | index | 指定要检索哪个值的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getAttributeValueCount: 返回。 |
| - (NSString *) getAttributeValueString: | (FSLRStructureElementAttributeType) | type | |
| index: | (int) | index | |
获取指定属性类型的字符串值(由索引指定)。
此函数适用于值类型为 FSLRStructureElementAttributeValueTypeWStr 或 FSLRStructureElementAttributeValueTypeWStrArray 的属性。对于其他值类型,此函数将返回空字符串。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| [in] | index | 指定要检索哪个值的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getAttributeValueCount: 返回。 |
| - (FSLRStructureElementAttributeValueType) getAttributeValueType: | (FSLRStructureElementAttributeType) | type |
获取指定属性类型的属性值类型。
| [in] | type | 属性类型。请参考从 FSLRStructureElementAttributeTypeRole 开始的值,应该是这些值中的一个。 |
| - (FSRectF *) getBBox |
获取边界框。
| - (FSLRElement *) getChild: | (int) | index |
通过索引获取子元素。
| [in] | index | 要检索的子元素的索引。有效范围:从 0 到(count-1)。 count 由函数 FSLRStructureElement::getChildCount 返回。 |
| - (int) getChildCount |
获取子元素的数量。
| - (FSLRStructureElement *) getParentElement |
获取父元素。
| - (FSLRStructureElementAttributeType) getSupportedAttribute: | (int) | index |
通过索引获取支持的属性类型。
| [in] | index | 要获取类型的支持属性的索引。有效范围:从0到(count-1)。 count由函数FSLRStructureElement::getSupportedAttributeCount返回。 |
| - (int) getSupportedAttributeCount |
获取支持的属性数量。
| - (id) initWithElement: | (FSLRElement*) | element |
构造函数,使用父类对象。
| [in] | element | 父类对象。 |
| - (id) initWithOther: | (FSLRStructureElement*) | other |
带参数的构造函数。
| [in] | other | 另一个结构元素对象。 |
| + (BOOL) isArrayAttributeValueType: | (FSLRStructureElementAttributeValueType) | type |
检查输入的属性值类型是否表示数组。
| [in] | type | 属性值类型。请参考从FSLRStructureElementAttributeValueTypeEmpty开始的值, 这应该是这些值中的一个。 |
| + (FSLRStructureElementAttributeType) parseAttributeType: | (NSString *) | type_string |
解析属性类型的字符串表示并获取此属性类型的枚举值。
| [in] | type_string | 结构元素属性类型的字符串表示。 |
| + (NSString *) stringifyAttributeType: | (FSLRStructureElementAttributeType) | type |
将指定属性类型的枚举值转换为简短且易记的字符串(文本)表示。
| [in] | type | 指定属性类型的枚举值。请参考从FSLRStructureElementAttributeTypeInvalid开始的值, 这应该是这些值中的一个。 |
| + (NSString *) stringifyEnumVariant: | (FSLRStructureElementAttributeValueEnum) | type |
将指定属性值枚举的枚举值转换为简短且易记的字符串(文本)表示。
| [in] | type | 指定属性值枚举的枚举值。请参考从 FSLRStructureElementAttributeValueEnumInvalid开始的值,这应该是这些值中的一个。 |