Foxit PDF SDK
foxit::pdf::TextLink类 参考
类 foxit::pdf::TextLink 继承关系图:
foxit::Base

Public 成员函数

 TextLink (const TextLink &other)
 用另一个文本链接对象的构造函数。 更多...
 
 ~TextLink ()
 析构函数。
 
int GetEndCharIndex ()
 基于PDF页面,获取当前超链接URI最后字符的索引。 更多...
 
RectFArray GetRects ()
 获取当前文本链接对象的文本矩形。 更多...
 
int GetStartCharIndex ()
 基于PDF页面,获取当前超链接URI起始字符的索引。 更多...
 
WString GetURI ()
 获取URI字符串。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const TextLink &other) const
 不等于操作符。 更多...
 
TextLinkoperator= (const TextLink &other)
 赋值操作符。 更多...
 
bool operator== (const TextLink &other) const
 等于操作符。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

文本链接就是文本内容,它表示到网站或互联网上资源的超文本链接, 或电子邮件地址。
此类提供从文本链接获取信息的函数。
文本链接对象由函数 PageTextLinks::GetTextLink 检索。

参见
PageTextLinks

构造及析构函数说明

◆ TextLink()

foxit::pdf::TextLink::TextLink ( const TextLink other)

用另一个文本链接对象的构造函数。

参数
[in]other另一个文本链接对象。

成员函数说明

◆ GetEndCharIndex()

int foxit::pdf::TextLink::GetEndCharIndex ( )

基于PDF页面,获取当前超链接URI最后字符的索引。

返回
最后字符的索引,从0开始。

◆ GetRects()

RectFArray foxit::pdf::TextLink::GetRects ( )

获取当前文本链接对象的文本矩形。

返回
矩形数组。

◆ GetStartCharIndex()

int foxit::pdf::TextLink::GetStartCharIndex ( )

基于PDF页面,获取当前超链接URI起始字符的索引。

返回
起始字符的索引,从0开始。

◆ GetURI()

WString foxit::pdf::TextLink::GetURI ( )

获取URI字符串。

文本链接的URI可以是到网站或互联网上资源的超文本链接。 它也可以是电子邮件地址。

返回
URI字符串。

◆ IsEmpty()

bool foxit::pdf::TextLink::IsEmpty ( ) const

检查当前对象是否为空。

当前对象为空时,意味着当前对象无用。

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

◆ operator !=()

bool foxit::pdf::TextLink::operator != ( const TextLink other) const

不等于操作符。

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

◆ operator=()

TextLink& foxit::pdf::TextLink::operator= ( const TextLink other)

赋值操作符。

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

◆ operator==()

bool foxit::pdf::TextLink::operator== ( const TextLink other) const

等于操作符。

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