Foxit PDF SDK
FSTreeItemInfo类 参考

继承自 NSObject .

构造函数

(id) - init
 构造函数。
更多...
 
(id) - initWithOther:
 构造函数,使用另一个阅读顺序树项信息对象。
更多...
 
(void) - set:order_index:page_index:text:rect:
 设置值。
更多...
 

属性

int order_index
 项的顺序索引,从 0 开始。

 
int page_index
 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 FSPDFDoc::getPageCount 返回的页面总数。

 
FSRectF * rect
 页面内容项的矩形区域。

 
NSString * text
 项文本,用于在 UI 中显示。

 
FSContentType type
 项内容类型。请参见从 FSContentTypeUnknown 开始的值。

 

详细描述

此类表示用于阅读顺序树项信息的数据。

函数文档

◆ init()

- (id) init

构造函数。

返回
无。

◆ initWithOther:()

- (id) initWithOther: (FSTreeItemInfo*)  other

构造函数,使用另一个阅读顺序树项信息对象。

参数
[in]other另一个阅读顺序树项信息对象。

◆ set:order_index:page_index:text:rect:()

- (void) set: (FSContentType)  type
order_index: (int)  order_index
page_index: (int)  page_index
text: (NSString *)  text
rect: (FSRectF*)  rect 

设置值。

参数
[in]type内容类型。请参见从 FSContentTypeUnknown 开始的值。
[in]order_index顺序索引。
[in]page_index页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 FSPDFDoc::getPageCount 返回的页面总数。
[in]text项文本。
[in]rect矩形。
返回
无。