Javascript: TXTextControl.Capitals Enumeration
Description
Specifies whether the lowercase letters of text are displayed with capital letters.
Members
| Member | Description |
|---|---|
| Capitals | All lowercase letters are displayed with capital letters. |
| SmallCapitals | All lowercase letters are displayed with capital letters which have the size of the lowercase 'x' + 10%. |
| PetiteCapitals | All lowercase letters are displayed with capital letters which have the size of the lowercase 'x'. |
| None | There are no text effects with capital letters. |
Examples
The following example uses TXTextControl.Capitals.Capitals (all lowercase letters are displayed with capital letters.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function applyCapitals(formattingStyle) {
formattingStyle.setCapitals(
TXTextControl.Capitals.Capitals,
function() {
console.log("set capitals completed.");
},
onTxError
);
}