Foxit PDF SDK
fsdk.TreeItemInfo类 参考

Public 成员函数

def GetOrder_index ()
 Get 项的顺序索引,从 0 开始。
更多...
 
def GetPage_index ()
 Get 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 fsdk.PDFDoc.GetPageCount 返回的页面总数。
更多...
 
def GetRect ()
 Get 页面内容项的矩形区域。
更多...
 
def GetText ()
 Get 项文本,用于在 UI 中显示。
更多...
 
def Set (type, order_index, page_index, text, rect)
 设置值。
更多...
 
def SetOrder_index (value)
 Set 项的顺序索引,从 0 开始。
更多...
 
def SetPage_index (value)
 Set 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 fsdk.PDFDoc.GetPageCount 返回的页面总数。
更多...
 
def SetRect (value)
 Set 页面内容项的矩形区域。
更多...
 
def SetText (value)
 Set 项文本,用于在 UI 中显示。
更多...
 

详细描述

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

成员函数说明

◆ GetOrder_index()

fsdk.TreeItemInfo.GetOrder_index ( )

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

返回
项的顺序索引,从 0 开始。

◆ GetPage_index()

fsdk.TreeItemInfo.GetPage_index ( )

Get 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 fsdk.PDFDoc.GetPageCount 返回的页面总数。

返回
选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 fsdk.PDFDoc.GetPageCount 返回的页面总数。

◆ GetRect()

fsdk.TreeItemInfo.GetRect ( )

Get 页面内容项的矩形区域。

返回
页面内容项的矩形区域。

◆ GetText()

fsdk.TreeItemInfo.GetText ( )

Get 项文本,用于在 UI 中显示。

返回
项文本,用于在 UI 中显示。

◆ Set()

def fsdk.TreeItemInfo.Set (   type,
  order_index,
  page_index,
  text,
  rect 
)

设置值。

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

◆ SetOrder_index()

fsdk.TreeItemInfo.SetOrder_index (   value)

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

参数
[in]value项的顺序索引,从 0 开始。
返回
None.

◆ SetPage_index()

fsdk.TreeItemInfo.SetPage_index (   value)

Set 选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 fsdk.PDFDoc.GetPageCount 返回的页面总数。

参数
[in]value选中项的页面索引。有效取值范围为 0 到 (count - 1),其中 count 为函数 fsdk.PDFDoc.GetPageCount 返回的页面总数。
返回
None.

◆ SetRect()

fsdk.TreeItemInfo.SetRect (   value)

Set 页面内容项的矩形区域。

参数
[in]value页面内容项的矩形区域。
返回
None.

◆ SetText()

fsdk.TreeItemInfo.SetText (   value)

Set 项文本,用于在 UI 中显示。

参数
[in]value项文本,用于在 UI 中显示。
返回
None.