TextChar Object
Description
The TextChar object represents a single character in a document.
Syntax
TextCharExamples
The following example demonstrates TextChar in a practical document-editing workflow. The TextChar object represents a single character in a document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectTextChar(textChar) {
textChar.getBounds(
function(rect) {
if (!rect) {
console.warn("No rectangle was returned.");
return;
}
console.log("get bounds result:", rect);
},
onTxError
);
}