isLinearGradientColor

[ Function ]

export function isLinearGradientColor(checkColor: any): boolean;

Checks if the passed parameter is of type TcHmi.LinearGradientColor.

Parameter

Name

Type

Description

checkColor

any

Variable to be tested

Return value

Type

Description

boolean

Returns true if it is a valid LinearGradientColor, otherwise false.

isLinearGradientColor 1:

Available from 1.8

Sample - JavaScript

if (TcHmi.isLinearGradientColor(this.__myColor)){
    // use the color
} else {
    // reset color
};