Gradient
Base for gradient pattern colors that interpolate between multiple stops; use to fill areas with linear or radial color transitions.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public abstract class Gradient : PatternColor, IEquatable<ColorBase>
Inheritance: objectColorBasePatternColorGradient
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a gradient with explicit placement transform.
public Gradient(Point startPoint, Point endPoint, IPosition position)
The starting point of the gradient.
endPointPointThe ending point of the gradient.
positionIPositionThe position transformation matrix for the gradient.
Creates a gradient defined by start and end points.
public Gradient(Point startPoint, Point endPoint)
The starting point of the gradient.
endPointPointThe ending point of the gradient.
Methods
Properties
Gets or sets the background color used outside the gradient ramp when extension is disabled.
public ColorBase Background { get; set; }
The background color, or null if no background color is specified.
EndPoint
Point
Gets or sets the ending point that anchors the gradient.
public Point EndPoint { get; set; }
The ending point of the gradient.
Gets or sets whether the gradient extends beyond the end point.
public bool ExtendAfter { get; set; }
True if the gradient extends after the end point; otherwise, false.
Gets or sets whether the gradient extends beyond the start point.
public bool ExtendBefore { get; set; }
True if the gradient extends before the start point; otherwise, false.
Gets the ordered stops that define the color interpolation.
public GradientStopCollection GradientStops { get; }
The gradient stops collection.
Gets or sets the transform that positions the gradient in user space.
public override IPosition Position { get; set; }
The position transformation matrix.
Overrides:
StartPoint
Point
Gets or sets the starting point that anchors the gradient.
public Point StartPoint { get; set; }
The starting point of the gradient.