Foxit PDF SDK
FSAccessibilityTextInfo类 参考

继承自 NSObject .

构造函数

(id) - init
 构造函数。

 
(id) - initWithOther:
 构造函数,使用另一个可访问性文本信息对象构造。
更多...
 
(void) - set:rect:data_index:text_color:background_color:border_color:
 设置值。
更多...
 

属性

unsigned int background_color
 文本区域的背景填充色。

 
unsigned int border_color
 文本区域边框所使用的颜色。

 
int data_index
 将该文本项映射回本页阅读顺序(reading-order)数据中对应条目的索引。非负值为有效的顺序数据 索引;-1 表示该文本项不与任何顺序数据关联(默认值)。

 
FSRectF * rect
 文本内容的边界矩形。

 
NSString * text
 用于可访问性可视化展示的文本内容。

 
unsigned int text_color
 文本所使用的颜色。

 

详细描述

此类表示可访问性文本信息。

函数文档

◆ initWithOther:()

- (id) initWithOther: (FSAccessibilityTextInfo*)  other

构造函数,使用另一个可访问性文本信息对象构造。

参数
[in]other另一个可访问性文本信息对象,其值将被复制 以初始化当前对象。

◆ set:rect:data_index:text_color:background_color:border_color:()

- (void) set: (NSString *)  text
rect: (FSRectF*)  rect
data_index: (int)  data_index
text_color: (unsigned int)  text_color
background_color: (unsigned int)  background_color
border_color: (unsigned int)  border_color 

设置值。

参数
[in]text用于可访问性可视化展示的文本内容。
[in]rect文本内容的边界矩形。
[in]data_index将该文本项映射回本页阅读顺序(reading-order)数据中对应条目的索引。 传入非负的顺序数据索引;若该文本项不与任何顺序数据关联,则传入 -1。
[in]text_color绘制文本所用的前景色。
[in]background_color文本区域的背景填充色。
[in]border_color文本区域的边框颜色。
返回
无。