Foxit PDF SDK
foxit.addon.accessibility.AccessibilityTextInfo Class Reference

Inherits SystemIDisposable.

Public Member Functions

 AccessibilityTextInfo ()
 Constructor.
 
 AccessibilityTextInfo (AccessibilityTextInfo other)
 Constructor, with another accessibility text info object. More...
 
void Set (string text, RectF rect, int data_index, int text_color, int background_color, int border_color)
 Set value. More...
 

Properties

int background_color [get, set]
 The background fill color of the text area.
 
int border_color [get, set]
 The color used of the border of the text area.
 
int data_index [get, set]
 Index that maps this text item back to its entry in the page's reading-order data. A non-negative value is a valid order-data index; -1 means this text item is not associated with any order data (the default).
 
RectF? rect [get, set]
 The bounding rectangle of the text content.
 
string text [get, set]
 The text content used for accessibility visualization.
 
int text_color [get, set]
 The color used of the text.
 

Detailed Description

This class represents accessibility text info.

Constructor & Destructor Documentation

◆ AccessibilityTextInfo()

foxit.addon.accessibility.AccessibilityTextInfo.AccessibilityTextInfo ( AccessibilityTextInfo  other)
inline

Constructor, with another accessibility text info object.

Parameters
[in]otherAnother accessibility text info object whose values are copied to initialize the current object.

Member Function Documentation

◆ Set()

void foxit.addon.accessibility.AccessibilityTextInfo.Set ( string  text,
RectF  rect,
int  data_index,
int  text_color,
int  background_color,
int  border_color 
)
inline

Set value.

Parameters
[in]textThe text content to display for accessibility visualization.
[in]rectThe bounding rectangle of the text content.
[in]data_indexIndex that maps this text item back to its entry in the page's reading-order data. Pass a non-negative order-data index, or -1 if this text item is not associated with any order data.
[in]text_colorThe foreground color used to draw the text.
[in]background_colorThe background fill color of the text area.
[in]border_colorThe border color of the text area.
Returns
None.