TX Sheet Control

ShapeGradient Interface

Interface

A shape-fill gradient definition retained by native geometry and shared rendering.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Members

Properties

PropertyDescription
angleThe angle value of ShapeGradient.
colorThe color value of ShapeGradient.

Examples

Pass the ShapeGradient value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { ShapeGradient } from '@txtextcontrol/tx-sheet-control';

function inspectShapeGradientColor(shapeGradient: ShapeGradient) {
    const value = shapeGradient['color'];
    console.log('ShapeGradient.color', value);
}

See Also