TX Text Control .NET Server

Javascript: TXTextControl.Capitals Enumeration

Enumeration|Introduced in 30.0

Description

Specifies whether the lowercase letters of text are displayed with capital letters.

Members

MemberDescription
CapitalsAll lowercase letters are displayed with capital letters.
SmallCapitalsAll lowercase letters are displayed with capital letters which have the size of the lowercase 'x' + 10%.
PetiteCapitalsAll lowercase letters are displayed with capital letters which have the size of the lowercase 'x'.
NoneThere 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
    );
}