menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearGradientInfo - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LinearGradientInfo

    Represents the model class to edit a Microsoft.UI.Xaml.Media.LinearGradientBrush.

    Inheritance
    System.Object
    NotificationObject
    ColorInfo
    GradientInfo
    LinearGradientInfo
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Inherited Members
    ColorInfo.Brush
    NotificationObject.PropertyChanged
    NotificationObject.RaisePropertyChanged(String)
    NotificationObject.RaisePropertyChanged(String[])
    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
    GradientInfo.GradientStops

    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
    GradientInfo.SelectedStop

    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.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved