Class LinearGradientInfo
Represents the model class to edit a Microsoft.UI.Xaml.Media.LinearGradientBrush.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class LinearGradientInfo : GradientInfo, INotifyPropertyChanged, IDisposable
Constructors
LinearGradientInfo(LinearGradientBrush)
Initializes a new instance of the LinearGradientInfo class.
Declaration
public LinearGradientInfo(LinearGradientBrush brush)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Media.LinearGradientBrush | brush | Brush value to be manipulated. |
Properties
Angle
Gets or sets the angle between Microsoft.UI.Xaml.Media.LinearGradientBrush.StartPoint and Microsoft.UI.Xaml.Media.LinearGradientBrush.EndPoint.
Declaration
public double Angle { get; set; }
Property Value
Type |
---|
System.Double |
EndX
Gets or sets the x value of the Microsoft.UI.Xaml.Media.LinearGradientBrush.EndPoint.
Declaration
public double EndX { get; set; }
Property Value
Type |
---|
System.Double |
EndY
Gets or sets the Y value of the Microsoft.UI.Xaml.Media.LinearGradientBrush.EndPoint.
Declaration
public double EndY { get; set; }
Property Value
Type |
---|
System.Double |
GradientStops
Gets the brush's gradient stops.
Declaration
public override ObservableCollection<GradientStopInfo> GradientStops { get; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<GradientStopInfo> |
Overrides
MappingMode
Gets or sets a BrushMappingMode enumeration value that specifies whether the positioning coordinates of the gradient brush are absolute or relative to the output area.
Declaration
public BrushMappingMode MappingMode { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.BrushMappingMode | A BrushMappingMode value that specifies how to interpret the gradient brush's positioning coordinates. The default is RelativeToBoundingBox. |
SelectedStop
Gets or sets the selected stop that is being edited.
Declaration
public override GradientStopInfo SelectedStop { get; set; }
Property Value
Type |
---|
GradientStopInfo |
Overrides
SpreadMethod
Gets or sets the type of spread method that specifies how to draw a gradient that starts or ends inside the bounds of the object to be painted.
Declaration
public GradientSpreadMethod SpreadMethod { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.GradientSpreadMethod | The type of spread method used to paint the gradient. The default is Pad. |
StartX
Gets or sets the x value of Microsoft.UI.Xaml.Media.LinearGradientBrush.StartPoint.
Declaration
public double StartX { get; set; }
Property Value
Type |
---|
System.Double |
StartY
Gets or sets the y value of the Microsoft.UI.Xaml.Media.LinearGradientBrush.StartPoint.
Declaration
public double StartY { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Dispose()
Release the unmanaged resources of LinearGradientInfo.
Declaration
public void Dispose()
Dispose(Boolean)
Release the unmanaged resources of LinearGradientInfo.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Used to indicate perform dispose or not. |