|
Foxit PDF SDK
|
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 |
| 不相等操作符。 更多... | |
| TextPageSelect & | operator= (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文本页面选择相关的方法。
|
explicit |
带参数的构造函数。
| [in] | page | 页面对象。 |
| foxit::ofd::TextPageSelect::TextPageSelect | ( | const TextPageSelect & | other | ) |
构造函数,通过另一个OFD文本页面选择对象。
| [in] | other | 另一个OFD文本页面选择对象。 |
| foxit::RectF foxit::ofd::TextPageSelect::GetRect | ( | int | index | ) |
获取指定索引的矩形。
| [in] | index | 矩形索引号。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::TextPageSelect::GetRectCount 返回。 |
| int foxit::ofd::TextPageSelect::GetRectCount | ( | ) |
获取矩形数量。
| String foxit::ofd::TextPageSelect::GetText | ( | ) |
获取文本内容。
| int foxit::ofd::TextPageSelect::GetTextID | ( | int | index | ) |
获取指定索引的文本ID。
| [in] | index | 文本ID索引号。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::TextPageSelect::GetTextIDCount 返回。 |
| int foxit::ofd::TextPageSelect::GetTextIDCount | ( | ) |
获取文本ID数量。
| bool foxit::ofd::TextPageSelect::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| bool foxit::ofd::TextPageSelect::operator != | ( | const TextPageSelect & | other | ) | const |
不相等操作符。
| [in] | other | 另一个OFD文本页面选择对象。此函数将检查当前对象是否不等于这个对象。 |
| TextPageSelect& foxit::ofd::TextPageSelect::operator= | ( | const TextPageSelect & | other | ) |
赋值操作符。
| [in] | other | 另一个OFD文本页面选择对象,其值将被赋给当前对象。 |
| bool foxit::ofd::TextPageSelect::operator== | ( | const TextPageSelect & | other | ) | const |
相等操作符。
| [in] | other | 另一个OFD文本页面选择对象。此函数将检查当前对象是否等于这个对象。 |
| void foxit::ofd::TextPageSelect::SetMode | ( | TextSelectMode | mode | ) |
| void foxit::ofd::TextPageSelect::SetRange | ( | foxit::PointF | start_point, |
| foxit::PointF | end_point | ||
| ) |
设置选择范围。
| [in] | start_point | 选择起始点。 |
| [in] | end_point | 选择结束点。 |