Table of Contents

Class GradientStop

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Describes the location and color of a transition point in a gradient.

public class GradientStop : IEquatable<GradientStop>
Inheritance
GradientStop
Implements

Constructors

GradientStop()

Initializes a new instance of the GradientStop class.

GradientStop(Color, double)

Initializes a new instance of the GradientStop class with the specified color and offset.

Properties

Color

Gets or sets the color of the gradient stop.

Offset

Gets the location of the gradient stop within the gradient vector.

Methods

Assign(GradientStop)

Assigns properties from another GradientStop.

Clone()

Creates copy of this GradientStop.

Equals(GradientStop?)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

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

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Operators

operator ==(GradientStop?, GradientStop?)

Returns a value that indicates whether the two objects are equal.

operator !=(GradientStop?, GradientStop?)

Returns a value that indicates whether the two objects are not equal.