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:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
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)