Javascript: TXTextControl.RulerBarBorderStyle Enumeration
Description
The border style of a ruler bar.
Members
| Member | Description |
|---|---|
| Simple3D | The ruler bar has a 3D design and no border. |
| Flat | The ruler bar has a flat design and no border. |
| Fixed3D | The ruler bar has a 3D design and a border with a single line. |
| FixedSingle | The ruler bar has has a flat design and a border with a single line. |
| ColorScheme | The ruler bar has a flat design without a border. The colors depend on the color scheme currently set through the system or on the colors set with the displayColors property. |
Examples
The following example uses TXTextControl.RulerBarBorderStyle.Simple3D (the ruler bar has a 3D design and no border.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.rulerBar.setBorderStyle(
TXTextControl.RulerBarBorderStyle.Simple3D,
function() {
console.log("set border style completed.");
},
onTxError
);