Table of Contents

Class LinearGradientBrush

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

Paints an area with a linear gradient.

public class LinearGradientBrush : GradientBrush, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged, IEquatable<Brush>
Inheritance
LinearGradientBrush
Implements

Constructors

LinearGradientBrush()

Initializes a new instance of the LinearGradientBrush class.

LinearGradientBrush(Color, Color)

Initializes a new instance of the LinearGradientBrush class with the specified start color and end color.

LinearGradientBrush(GradientStop[])

Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops.

LinearGradientBrush(PointD, PointD, Color, Color)

Initializes a new instance of the LinearGradientBrush class that has the specified start color, end color, start point, end point.

LinearGradientBrush(PointD, PointD, GradientStop[])

Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops, start point and end point.

Properties

BrushType

Gets type of the brush.

EndPoint

Gets or sets the ending two-dimensional coordinates of the linear gradient.

StartPoint

Gets or sets the starting two-dimensional coordinates of the linear gradient.

Methods

CreateHandler()

Creates handler.

CreateSkiaShader()

Creates SKShader for this radial gradient brush.

Equals(object?)

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

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

UpdateHandler()

Updates handler.