TX Text Control .NET Server

Color Object

Object|Introduced in 25.0

Description

Represents an ARGB (alpha, red, green, blue) color.

Syntax

TXTextControl.Color

Examples

The following example demonstrates TXTextControl.Color in a practical document-editing workflow. It represents an ARGB (alpha, red, green, blue) color.

function inspectColor(color) {
    console.log("TXTextControl.Color object:", color);
}

Members

Constructors

ConstructorDescription
ColorInitializes a new instance of the Color class.

Properties

PropertyDescription
aThe alpha component of the color.
bThe blue component of the color.
gThe green component of the color.
rThe red component of the color.