GradientStop

GradientStop class

Represents the gradient stop.

class GradientStop;

Properties

PropertyTypeDescription
positionnumberThe position of the stop.
cellsColorCellsColorReadonly. Gets the color of this gradient stop.
transparencynumberReturns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

Methods

MethodDescription
getPosition()@deprecated. Please use the ‘position’ property instead. The position of the stop.
setPosition(number)@deprecated. Please use the ‘position’ property instead. The position of the stop.
getCellsColor()@deprecated. Please use the ‘cellsColor’ property instead. Gets the color of this gradient stop.
getTransparency()@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
setTransparency(number)@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
isNull()Checks whether the implementation object is null.

position

The position of the stop.

position : number;

cellsColor

Readonly. Gets the color of this gradient stop.

cellsColor : CellsColor;

transparency

Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

transparency : number;

getPosition()

@deprecated. Please use the ‘position’ property instead. The position of the stop.

getPosition() : number;

setPosition(number)

@deprecated. Please use the ‘position’ property instead. The position of the stop.

setPosition(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getCellsColor()

@deprecated. Please use the ‘cellsColor’ property instead. Gets the color of this gradient stop.

getCellsColor() : CellsColor;

Returns

CellsColor

getTransparency()

@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

getTransparency() : number;

setTransparency(number)

@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;