Class
RadialGradient

Radial gradient that blends colors between two circles defined by centers and radii; use for spotlight or vignette effects.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class RadialGradient : Gradient, IEquatable<ColorBase>

Inheritance: objectColorBasePatternColorGradientRadialGradient

Implements: IEquatable<ColorBase>

Inherited Members Gradient.StartPointGradient.EndPointGradient.ExtendBeforeGradient.ExtendAfterGradient.BackgroundGradient.GradientStopsGradient.PositionColorBase.Equals(object)

Constructors

RadialGradient(Point, Point, double, double)

Creates a radial gradient with the specified centers and radii.

Declaration

cs-api-definition
public RadialGradient(Point startPoint, Point endPoint, double startRadius, double endRadius)

Parameters

startPoint

Point

The start point.

endPoint

Point

The end point.

startRadius

double

The start radius.

endRadius

double

The end radius.

Properties

EndRadius

Gets or sets the radius of the outer circle where interpolation ends.

Declaration

cs-api-definition
public double EndRadius { get; set; }

Property Value

double

End radius in user units.

StartRadius

Gets or sets the radius of the inner circle where interpolation starts.

Declaration

cs-api-definition
public double StartRadius { get; set; }

Property Value

double

Start radius in user units.

Methods

Equals(ColorBase)

Compares this radial gradient with another color for value equality.

Declaration

cs-api-definition
public override bool Equals(ColorBase other)

Parameters

other

ColorBase

The other color to compare.

Returns

bool

True if both represent equivalent radial gradients; otherwise, false.

Overrides Gradient.Equals(ColorBase)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ColorBase.GetHashCode()