Javascript: Selection.Attribute Enumeration
Description
Determines a certain selection attribute.
Members
| Member | Description |
|---|---|
| Baseline | Specifies the attribute set through the Baseline property. |
| Bold | Specifies the attribute set through the Bold property. |
| Italic | Specifies the attribute set through the Italic property. |
| FontName | Specifies the attribute set through the FontName property. |
| FontSize | Specifies the attribute set through the FontSize property. |
| Strikeout | Specifies the attribute set through the Strikeout property. |
| Underline | Specifies the attribute set through the Underline property. |
| ForeColor | Specifies the attribute set through the ForeColor property. |
| TextBackColor | Specifies the attribute set through the TextBackColor property. |
| Start | Specifies the attribute set through the Start property. |
| Length | Specifies the attribute set through the Length property. |
| Text | Specifies the attribute set through the Text property. |
| FormattingStyle | Specifies the attribute set through the FormattingStyle property. |
| Culture | Specifies the attribute set through the Culture property. |
| All | Specifies 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
);