Focus On Reading Position Target
Option values used with IFocusOnReadingPositionTargetOptions.target
Entries
Focuses on the closest element that matches the reading position. If the reading position is inside a Text node, the focus will be applied on the nearest ancestor Element or sibling Element.
Focuses as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest character to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT.
Focuses on the word as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest word to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT, especially useful for screen readers.
Focuses on the sentence or the nearest element boundary as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest sentence to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT, especially useful for screen readers.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.