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 |
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 |
Returns
- bool:
true
if the specifiedObject
is equal to the currentObject
; 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
- BackgroundFill.Clone()
- BackgroundFill.Draw(Graphics, Rectangle)
- BackgroundFill.Draw(Graphics, Rectangle, Rectangle)
- BackgroundFill.Draw(Graphics, Rectangle, Sides)
- BackgroundFill.Draw(Graphics, Rectangle, Rectangle, Sides)
- BackgroundFill.DrawScaled(Graphics, Rectangle, SizeF)
- BackgroundFill.DrawScaled(Graphics, Rectangle, Rectangle, SizeF)
- BackgroundFill.DrawScaled(Graphics, Rectangle, Sides, SizeF)
- BackgroundFill.DrawScaled(Graphics, Rectangle, Rectangle, Sides, SizeF)
- BackgroundFill.GetBrush(Rectangle, Sides)
- BackgroundFill.OnPropertyChanged(EventArgs)
- BackgroundFill.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)