RequestRectangleCallback Function
Description
Callback function for requests expecting a Rectangle object.
Syntax
function(<Rectangle> rect)Examples
The following example demonstrates RequestRectangleCallback in a practical document-editing workflow. Callback function for requests expecting a Rectangle object.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestRectangleCallback(rect) {
console.log("rect:", rect);
}
function useRequestRectangleCallback(frameBase) {
frameBase.getBounds(requestRectangleCallback, onTxError);
}