TextViewGeneratorColors Object
Description
The TextViewGeneratorColors object provides methods for getting, setting or resetting the display colors of the TextControl. By default the display colors depend on sytem colors on the server. With this object all colors can be individually designed.
Syntax
TextViewGeneratorColorsExamples
The following example demonstrates TextViewGeneratorColors in a practical document-editing workflow. The TextViewGeneratorColors object provides methods for getting, setting or resetting the display colors of the TextControl. By default the display colors depend on sytem colors on the server. With this object all colors can be individually designed.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.displayColors.getActiveFormFieldColor(
function(result) {
console.log("get active form field color result:", result);
},
onTxError
);Members
Methods
| Method | Description |
|---|---|
| getActiveFormFieldColor | Gets the highlight color of a form field containing the current text input position. If the property is not set, the return value is null. |
| getDarkShadowColor | Gets the display color for the shadow at the right and the bottom edge of the pages. |
| getDesktopColor | Gets the display color for the area around the pages. |
| getFormFieldColor | Gets the default highlight color of form fields. If the property is not set, the return value is null. |
| getHeaderFooterLabelColor | Gets the display color for the label showing which header or footer is activated. |
| getHeaderFooterLineColor | Gets the display color for the dividing line between headers and footers and the main text. |
| getLightShadowColor | Gets the display color for the shadow at the left and the top edge of the pages. |
| resetDarkShadowColor | Resets the text control's DarkShadowColor to its system dependent default value. |
| resetDesktopColor | Resets the text control's DesktopColor to its system dependent default value. |
| resetHeaderFooterLabelColor | Resets the text control's HeaderFooterLabelColor to its system dependent default value. |
| resetHeaderFooterLineColor | Resets the text control's HeaderFooterLineColor to its system dependent default value. |
| resetLightShadowColor | Resets the text control's LightShadowColor to its system dependent default value. |
| setActiveFormFieldColor | Sets the highlight color of a form field containing the current text input position. To suppress highlighting the active FormField the property value can be set to null. |
| setDarkShadowColor | Sets the display color for the shadow at the right and the bottom edge of the pages. |
| setDesktopColor | Sets the display color for the area around the pages. |
| setFormFieldColor | Sets the default highlight color of a form field. To suppress highlighting the FormField the property value can be set to null. |
| setHeaderFooterLabelColor | Sets the display color for the label showing which header or footer is activated. |
| setHeaderFooterLineColor | Sets the display color for the dividing line between headers and footers and the main text. |
| setLightShadowColor | Sets the display color for the shadow at the left and the top edge of the pages. |