Foxit PDF SDK
foxit::addon::accessibility::TreeItemInfo类 参考

继承自 Object .

Public 成员函数

 TreeItemInfo ()
 构造函数。 更多...
 
 TreeItemInfo (const TreeItemInfo &other)
 构造函数,使用另一个阅读顺序树项信息对象。 更多...
 
 TreeItemInfo (ContentType type, int order_index, int page_index, const wchar_t *text, foxit::RectF rect)
 构造函数。 更多...
 
TreeItemInfo & operator= (const TreeItemInfo &other)
 赋值操作符。 更多...
 
void Set (ContentType type, int order_index, int page_index, const wchar_t *text, foxit::RectF rect)
 设置值。 更多...
 

Public 属性

int order_index
 项的顺序索引,从 0 开始。
 
int page_index
 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 pdf::PDFDoc::GetPageCount 返回的页面总数。
 
foxit::RectF rect
 页面内容项的矩形区域。
 
WString text
 项文本,用于在 UI 中显示。
 
ContentType type
 项内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
 

详细描述

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

构造及析构函数说明

◆ TreeItemInfo() [1/3]

foxit::addon::accessibility::TreeItemInfo::TreeItemInfo ( )
inline

构造函数。

参数
[in]type内容类型。请参见从 foxit::addon::accessibility::e_ContentTypeUnknown 开始的值。
[in]order_index顺序索引。
[in]page_index页面索引。
[in]text项文本。
[in]rect矩形。
返回
无。

◆ TreeItemInfo() [2/3]

foxit::addon::accessibility::TreeItemInfo::TreeItemInfo ( ContentType  type,
int  order_index,
int  page_index,
const wchar_t *  text,
foxit::RectF  rect 
)
inline

构造函数。

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

◆ TreeItemInfo() [3/3]

foxit::addon::accessibility::TreeItemInfo::TreeItemInfo ( const TreeItemInfo &  other)
inline

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

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

成员函数说明

◆ operator=()

TreeItemInfo& foxit::addon::accessibility::TreeItemInfo::operator= ( const TreeItemInfo &  other)
inline

赋值操作符。

参数
[in]other另一个阅读顺序树项信息对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ Set()

void foxit::addon::accessibility::TreeItemInfo::Set ( ContentType  type,
int  order_index,
int  page_index,
const wchar_t *  text,
foxit::RectF  rect 
)
inline

设置值。

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