ImmutableLinearGradientBrush(IReadOnlyList<ImmutableGradientStop>, Double, ImmutableTransform, Nullable<RelativePoint>, GradientSpreadMethod, Nullable<RelativePoint>, Nullable<RelativePoint>) Constructor
Initializes a new instance of the ImmutableLinearGradientBrush class.
Definition
Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public ImmutableLinearGradientBrush(
IReadOnlyList<ImmutableGradientStop> gradientStops,
double opacity = 1,
ImmutableTransform? transform = null,
RelativePoint? transformOrigin = null,
GradientSpreadMethod spreadMethod = GradientSpreadMethod.Pad,
RelativePoint? startPoint = null,
RelativePoint? endPoint = null
)
Public Sub New (
gradientStops As IReadOnlyList(Of ImmutableGradientStop),
Optional opacity As Double = 1,
Optional transform As ImmutableTransform = Nothing,
Optional transformOrigin As RelativePoint? = Nothing,
Optional spreadMethod As GradientSpreadMethod = GradientSpreadMethod.Pad,
Optional startPoint As RelativePoint? = Nothing,
Optional endPoint As RelativePoint? = Nothing
)
new :
gradientStops : IReadOnlyList<ImmutableGradientStop> *
?opacity : float *
?transform : ImmutableTransform *
?transformOrigin : Nullable<RelativePoint> *
?spreadMethod : GradientSpreadMethod *
?startPoint : Nullable<RelativePoint> *
?endPoint : Nullable<RelativePoint>
(* Defaults:
let _opacity = defaultArg opacity 1
let _transform = defaultArg transform null
let _transformOrigin = defaultArg transformOrigin null
let _spreadMethod = defaultArg spreadMethod GradientSpreadMethod.Pad
let _startPoint = defaultArg startPoint null
let _endPoint = defaultArg endPoint null
*)
-> ImmutableLinearGradientBrush
Parameters
- IReadOnlyList(ImmutableGradientStop)
- The gradient stops.
- Double (Optional)
- The opacity of the brush.
- ImmutableTransform (Optional)
- The transform of the brush.
- Nullable(RelativePoint) (Optional)
- The transform origin of the brush
- GradientSpreadMethod (Optional)
- The spread method.
- Nullable(RelativePoint) (Optional)
- The start point for the gradient.
- Nullable(RelativePoint) (Optional)
- The end point for the gradient.
See Also
Reference
ImmutableLinearGradientBrush Class
ImmutableLinearGradientBrush Overload
Avalonia.Media.Immutable Namespace