LinearGradientMode

System.Drawing.Drawing2D.LinearGradientMode

Namespace: System.Drawing.Drawing2D

Assembly: System.Drawing.Managed (4.0.0.0)

Specifies the direction of a linear gradient.

public enum LinearGradientMode : Enum

Fields

Name
Description

BackwardDiagonal

Specifies a gradient from upper-right to lower-left.

ForwardDiagonal

Specifies a gradient from upper-left to lower-right.

Horizontal

Specifies a gradient from left to right.

Vertical

Specifies a gradient from top to bottom.

Last updated

Was this helpful?