Class RadialGradientInfo
Represents the model class to edit a Microsoft.UI.Xaml.Media.RadialGradientBrush.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class RadialGradientInfo : GradientInfo, INotifyPropertyChanged, IDisposableConstructors
RadialGradientInfo(RadialGradientBrush)
Initializes a new instance of the RadialGradientInfo class.
Declaration
public RadialGradientInfo(RadialGradientBrush brush)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Media.RadialGradientBrush | brush | Brush value to be manipulated. | 
Properties
CenterX
Gets or sets the x value of start point of the Microsoft.UI.Xaml.Media.RadialGradientBrush.Center.
Declaration
public double CenterX { get; set; }Property Value
| Type | 
|---|
| System.Double | 
CenterY
Gets or sets the y value of start point of the Microsoft.UI.Xaml.Media.RadialGradientBrush.Center.
Declaration
public double CenterY { get; set; }Property Value
| Type | 
|---|
| System.Double | 
Direction
Gets or sets one of the gradient direction preset.
Declaration
public GradientDirection Direction { get; set; }Property Value
| Type | 
|---|
| GradientDirection | 
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. | 
OriginX
Gets or sets the x value of end point of the Microsoft.UI.Xaml.Media.RadialGradientBrush.GradientOrigin.
Declaration
public double OriginX { get; set; }Property Value
| Type | 
|---|
| System.Double | 
OriginY
Gets or sets the Y value of end point of the Microsoft.UI.Xaml.Media.RadialGradientBrush.GradientOrigin.
Declaration
public double OriginY { get; set; }Property Value
| Type | 
|---|
| System.Double | 
RadiusX
Gets or sets the Y value of end point of the Microsoft.UI.Xaml.Media.RadialGradientBrush.RadiusX.
Declaration
public double RadiusX { get; set; }Property Value
| Type | 
|---|
| System.Double | 
RadiusY
Gets or sets the Y value of end point of the Microsoft.UI.Xaml.Media.RadialGradientBrush.RadiusY.
Declaration
public double RadiusY { get; set; }Property Value
| Type | 
|---|
| System.Double | 
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. | 
Methods
Dispose()
Release the unmanaged resources of RadialGradientInfo.
Declaration
public void Dispose()Dispose(Boolean)
Release the unmanaged resources of RadialGradientInfo.
Declaration
protected virtual void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | Used to indicate perform dispose or not. |