Class LinearGradientBrush
Paints an area with a linear gradient.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class LinearGradientBrush : GradientBrush, IHasAccessToPropertiesWhereItIsUsed
Constructors
| Improve this Doc View SourceLinearGradientBrush()
Declaration
public LinearGradientBrush()
LinearGradientBrush(GradientStopCollection, Double)
Initializes a new instance of the LinearGradientBrush class that has the specified GradientStopCollection and angle.
Declaration
public LinearGradientBrush(GradientStopCollection gradientStopCollection, double angle)
Parameters
Type | Name | Description |
---|---|---|
GradientStopCollection | gradientStopCollection | The GradientStops to set on this brush. |
System.Double | angle | A System.Double that represents the angle, in degrees, of the gradient. A value of 0 creates a horizontal gradient, and a value of 90 creates a vertical gradient. Negative values are permitted, as are values over 360 (which are treated as mod 360). |
Fields
| Improve this Doc View SourceEndPointProperty
Identifies the EndPoint dependency property.
Declaration
public static readonly DependencyProperty EndPointProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StartPointProperty
Identifies the StartPoint dependency property.
Declaration
public static readonly DependencyProperty StartPointProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceEndPoint
Gets or sets the ending two-dimensional coordinates of the linear gradient.
Declaration
public Point EndPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
StartPoint
Gets or sets the starting two-dimensional coordinates of the linear gradient.
Declaration
public Point StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
Methods
| Improve this Doc View SourceConvertToCSSValues(DependencyObject)
Declaration
public List<object> ConvertToCSSValues(DependencyObject parent)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | parent |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> |