In This Article

Gradient Class

Specifies a base class for gradient information.

public abstract class Gradient : BackgroundFill, ICloneable
Inheritance:
object BackgroundFill object
Derived:
EllipseGradient LinearGradient
Implements:
ICloneable

Constructors

Gradient()

Initializes an instance of the class.

protected Gradient()

Gradient(Gradient)

Initializes an instance of the class.

protected Gradient(Gradient copyFrom)
Parameter Type Description
copyFrom Gradient

An instance of Gradient which will be copied to initialize the new instance.

Remarks

This constructor used in support of Clone() for base classes to initialize their fields.

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameter Type Description
obj object

The object to compare with the current object.

Returns

bool:

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

Inherited Members

Extension Methods