GradientStop

Overview

GradientStop is a class in Aspose.Words FOSS for .NET.

Represents one gradient stop.

This class provides 3 methods for working with GradientStop objects in .NET programs. Available methods include: GradientStop, Remove. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: BaseColor, Color, Position, Transparency.

Properties

NameTypeAccessDescription
ColorColorRead/WriteGets or sets a value representing the color of the gradient stop.
BaseColorColorReadGets a value representing the color of the gradient stop without any modifiers.
PositiondoubleRead/WriteGets or sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
TransparencydoubleRead/WriteGets or sets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0.

Methods

SignatureDescription
GradientStop(color: Color, position: double)Initializes a new instance of the GradientStop class.
GradientStop(color: Color, position: double, transparency: double)Initializes a new instance of the GradientStop class.
Remove()Removes the gradient stop from the parent GradientStopCollection.

See Also