DS Server

Javascript: Selection.Attribute Enumeration

Enumeration|Introduced in 28.0

Description

Determines a certain selection attribute.

Members

MemberDescription
BaselineSpecifies the attribute set through the Baseline property.
BoldSpecifies the attribute set through the Bold property.
ItalicSpecifies the attribute set through the Italic property.
FontNameSpecifies the attribute set through the FontName property.
FontSizeSpecifies the attribute set through the FontSize property.
StrikeoutSpecifies the attribute set through the Strikeout property.
UnderlineSpecifies the attribute set through the Underline property.
ForeColorSpecifies the attribute set through the ForeColor property.
TextBackColorSpecifies the attribute set through the TextBackColor property.
StartSpecifies the attribute set through the Start property.
LengthSpecifies the attribute set through the Length property.
TextSpecifies the attribute set through the Text property.
FormattingStyleSpecifies the attribute set through the FormattingStyle property.
CultureSpecifies the attribute set through the Culture property.
AllSpecifies all attributes of the Selection.

Examples

The following example uses TXTextControl.Selection.Attribute.Baseline (specifies the attribute set through the Baseline property.) in a document-editing workflow.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.selection.isCommonSelectionValueSelected(
    TXTextControl.Selection.Attribute.Baseline,
    function() {
        console.log("is common selection value selected completed.");
    },
    onTxError
);

Further Reading