2.9.59 TextRange

Referenced by: MouseClickTextInteractiveInfoAtom, MouseOverTextInteractiveInfoAtom

A structure that specifies a range of text.

Let the corresponding text be as specified in the MouseClickTextInteractiveInfoAtom record or the MouseOverTextInteractiveInfoAtom record that contains this TextRange structure.

The range specified MUST be valid for the corresponding text. The length of the range of text is specified by the following formula:

 end - begin


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

begin

end

begin (4 bytes): A TextPosition that specifies the first position of the range. It MUST be greater than or equal to zero and MUST be less than or equal to the length of the corresponding text.

end (4 bytes): A TextPosition that specifies the cutoff position for the range. The character before this position is the last character in the range. It MUST be greater than begin and MUST be less than or equal to the length of the corresponding text.