Share via


LinearGradientPaint Class

Definition

Represents a linear gradient paint that transitions colors along a line defined by start and end points.

public ref class LinearGradientPaint : Microsoft::Maui::Graphics::GradientPaint
public class LinearGradientPaint : Microsoft.Maui.Graphics.GradientPaint
type LinearGradientPaint = class
    inherit GradientPaint
Public Class LinearGradientPaint
Inherits GradientPaint
Inheritance
LinearGradientPaint

Constructors

LinearGradientPaint()

Initializes a new instance of the LinearGradientPaint class with default start point (0,0) and end point (1,1).

LinearGradientPaint(GradientPaint)

Initializes a new instance of the LinearGradientPaint class with properties from another gradient paint.

LinearGradientPaint(PaintGradientStop[], Point, Point)

Initializes a new instance of the LinearGradientPaint class with the specified gradient stops, start point, and end point.

LinearGradientPaint(PaintGradientStop[])

Initializes a new instance of the LinearGradientPaint class with the specified gradient stops.

LinearGradientPaint(Point, Point)

Initializes a new instance of the LinearGradientPaint class with the specified start and end points.

Properties

BackgroundColor

Gets or sets the background color of the paint.

(Inherited from Paint)
EndColor (Inherited from GradientPaint)
EndColorIndex (Inherited from GradientPaint)
EndPoint

Gets or sets the end point of the gradient.

ForegroundColor

Gets or sets the foreground color of the paint.

(Inherited from Paint)
GradientStops (Inherited from GradientPaint)
IsTransparent (Inherited from GradientPaint)
StartColor (Inherited from GradientPaint)
StartColorIndex (Inherited from GradientPaint)
StartPoint

Gets or sets the start point of the gradient.

Methods

AddOffset(Single, Color) (Inherited from GradientPaint)
AddOffset(Single) (Inherited from GradientPaint)
BlendStartAndEndColors() (Inherited from GradientPaint)
BlendStartAndEndColors(Color, Color, Single) (Inherited from GradientPaint)
GetColorAt(Single) (Inherited from GradientPaint)
GetSortedStops() (Inherited from GradientPaint)
RemoveOffset(Int32) (Inherited from GradientPaint)
SetGradientStops(Single[], Color[]) (Inherited from GradientPaint)
ToString() (Inherited from GradientPaint)

Extension Methods

IsNullOrEmpty(Paint)
ToColor(Paint)

Applies to