Foxit PDF SDK
foxit::ofd::TextPageSelect类 参考
类 foxit::ofd::TextPageSelect 继承关系图:
foxit::Base

Public 类型

enum  TextSelectMode { e_ModeRectBox = 0, e_ModeParagraph = 1 }
 OFD文本选择模式定义枚举类型。 更多...
 

Public 成员函数

 TextPageSelect (OFDPage page)
 带参数的构造函数。 更多...
 
 TextPageSelect (const TextPageSelect &other)
 构造函数,通过另一个OFD文本页面选择对象。 更多...
 
 ~TextPageSelect ()
 析构函数。
 
foxit::RectF GetRect (int index)
 获取指定索引的矩形。 更多...
 
int GetRectCount ()
 获取矩形数量。 更多...
 
String GetText ()
 获取文本内容。 更多...
 
int GetTextID (int index)
 获取指定索引的文本ID。 更多...
 
int GetTextIDCount ()
 获取文本ID数量。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const TextPageSelect &other) const
 不相等操作符。 更多...
 
TextPageSelectoperator= (const TextPageSelect &other)
 赋值操作符。 更多...
 
bool operator== (const TextPageSelect &other) const
 相等操作符。 更多...
 
void SetMode (TextSelectMode mode)
 设置选择模式。 更多...
 
void SetRange (foxit::PointF start_point, foxit::PointF end_point)
 设置选择范围。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类表示和OFD文本页面选择相关的方法。

成员枚举类型说明

◆ TextSelectMode

OFD文本选择模式定义枚举类型。

该枚举值应单独使用。

枚举值
e_ModeRectBox 

模式类型:矩形选择。

e_ModeParagraph 

模式类型:段落选择。

构造及析构函数说明

◆ TextPageSelect() [1/2]

foxit::ofd::TextPageSelect::TextPageSelect ( OFDPage  page)
explicit

带参数的构造函数。

参数
[in]page页面对象。

◆ TextPageSelect() [2/2]

foxit::ofd::TextPageSelect::TextPageSelect ( const TextPageSelect other)

构造函数,通过另一个OFD文本页面选择对象。

参数
[in]other另一个OFD文本页面选择对象。

成员函数说明

◆ GetRect()

foxit::RectF foxit::ofd::TextPageSelect::GetRect ( int  index)

获取指定索引的矩形。

参数
[in]index矩形索引号。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::TextPageSelect::GetRectCount 返回。
返回
指定索引的矩形。

◆ GetRectCount()

int foxit::ofd::TextPageSelect::GetRectCount ( )

获取矩形数量。

返回
矩形数量。

◆ GetText()

String foxit::ofd::TextPageSelect::GetText ( )

获取文本内容。

返回
文本内容。

◆ GetTextID()

int foxit::ofd::TextPageSelect::GetTextID ( int  index)

获取指定索引的文本ID。

参数
[in]index文本ID索引号。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::TextPageSelect::GetTextIDCount 返回。
返回
指定索引的文本ID。

◆ GetTextIDCount()

int foxit::ofd::TextPageSelect::GetTextIDCount ( )

获取文本ID数量。

返回
文本ID数量。

◆ IsEmpty()

bool foxit::ofd::TextPageSelect::IsEmpty ( ) const

检查当前对象是否为空。

当前对象为空时,表示当前对象是无用的。

返回
true 表示当前对象为空,false 表示不为空。

◆ operator !=()

bool foxit::ofd::TextPageSelect::operator != ( const TextPageSelect other) const

不相等操作符。

参数
[in]other另一个OFD文本页面选择对象。此函数将检查当前对象是否不等于这个对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

TextPageSelect& foxit::ofd::TextPageSelect::operator= ( const TextPageSelect other)

赋值操作符。

参数
[in]other另一个OFD文本页面选择对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ operator==()

bool foxit::ofd::TextPageSelect::operator== ( const TextPageSelect other) const

相等操作符。

参数
[in]other另一个OFD文本页面选择对象。此函数将检查当前对象是否等于这个对象。
返回
true 表示相等,false 表示不相等。

◆ SetMode()

void foxit::ofd::TextPageSelect::SetMode ( TextSelectMode  mode)

设置选择模式。

参数
[in]mode选择模式。请参考从 foxit::ofd::TextPageSelect::e_ModeRectBox 开始的值, 应该是这些值中的一个。
返回
无。

◆ SetRange()

void foxit::ofd::TextPageSelect::SetRange ( foxit::PointF  start_point,
foxit::PointF  end_point 
)

设置选择范围。

参数
[in]start_point选择起始点。
[in]end_point选择结束点。
返回
无。