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 a new instance of the Gradient class.

protected Gradient()

Remarks

The default constructor initializes all fields to their default values.

Gradient(Gradient)

Initializes a new instance of the Gradient 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 to the current Object.

Returns

bool:

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

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

int:

An integer value that specifies a hash value for this object.

Inherited Members