Help Contents

Print2HTML5 Document API Objects

Below is the description of each object used in Print2HTML5 Document Application Programming Interface.


SelectionRange object

Several methods of Print2HTML5 Document API use or return an object of type SelectionRange. This object describes the text selection range and can be used to determine if the text selection range has been changed or to restore previous text selection. This object should be considered an opaque data type. Don't try to decompose the returned object, because its contents and format will probably change in future versions.

Methods
 

Signature Parameters Return value Comments
equals(that) that - another SelectionRange object to which compare this one true if objects are equal and false - otherwise Compares this SelectionRange object with another one


VisibleArea object

Several methods in Print2HTML5 Document API use or return an object of type VisibleArea. This object describes the current visible area of the document. This object should be considered an opaque data type. Don't try to decompose the returned object, because its contents and format will probably change in future versions.

Methods
 

Signature Parameters Return value Comments
equals(that) that - another VisibleArea object to which compare this one true if objects are equal and false - otherwise Compares this VisibleArea object with another one


Point object

Several methods in Print2HTML5 Document API use or return an object of type Point. This object describes a position within the document scroll area.

Properties
 

Name Comments
x The horizontal coordinate of scroll position
y The vertical coordinate of scroll position