[]
Represents a linear gradient brush.
new LinearGradientBrush(linearGradientBrushProperties): LinearGradientBrush;
Creates a linear gradient brush with specified properties.
The settings for creating a linear gradient brush.
LinearGradientBrush
const brush = new LinearGradientBrush({
startColor: "ForestGreen",
startPoint: { x: 0, y: 0 },
endColor: "Yellow",
endPoint: { x: 1, y: 0 }
});
Brush.constructor
new LinearGradientBrush(om, linearGradientBrushProperties): LinearGradientBrush;
Creates a linear gradient brush with specified properties.
An object manager that controls the lifetime of the LinearGradientBrush object.
The settings for creating a linear gradient brush.
LinearGradientBrush
Brush.constructor
get endColor(): Color;
Gets the ending gradient color.
get endPoint(): Point;
Gets the end point of the linear gradient brush. (0, 0) is the top-left corner, (1, 1) is the bottom-right corner.
get gradientStops(): GradientStop[];
Gets the array of gradient stops.
get id(): number;
Gets the reference to the object.
number
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get startColor(): Color;
Gets the starting gradient color.
get startPoint(): Point;
Gets the start point of the linear gradient brush. (0, 0) is the top-left corner, (1, 1) is the bottom-right corner.
get type(): BrushType;
Gets the type of the brush.
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void