alexa
menu

Xamarin.iOS

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class LinearGradientBrush

    Represents a linear gradient brush.

    Inheritance
    System.Object
    Brush
    LinearGradientBrush
    Implements
    System.ICloneable
    Namespace: Syncfusion.SfDiagram.iOS
    Assembly: Syncfusion.SfDiagram.iOS.dll
    Syntax
    public class LinearGradientBrush : Brush, ICloneable

    Constructors

    LinearGradientBrush(Single, Single, Single, Single, UIColor[], GradientDrawingOptions)

    Initializes a new instance of the LinearGradientBrush class.

    Declaration
    public LinearGradientBrush(float startX, float startY, float endX, float endY, UIColor[] colors, GradientDrawingOptions option)
    Parameters
    Type Name Description
    System.Single startX

    X coordinate of the starting point.

    System.Single startY

    Y coordinate of the starting point.

    System.Single endX

    X coordinate of the ending point.

    System.Single endY

    Y coordinate of the ending point..

    UIKit.UIColor[] colors

    Colors value.

    GradientDrawingOptions option

    Gradient drawing option.

    LinearGradientBrush(UIColor[], Single[], GradientDrawingOptions)

    Initializes a new instance of the LinearGradientBrush class.

    Declaration
    public LinearGradientBrush(UIColor[] colors, float[] positions, GradientDrawingOptions option)
    Parameters
    Type Name Description
    UIKit.UIColor[] colors

    Colors value..

    System.Single[] positions

    Position for each color.

    GradientDrawingOptions option

    Gradient drawing option.

    Properties

    Colors

    Gets or sets the colors for gradient brush.

    Declaration
    public UIColor[] Colors { get; set; }
    Property Value
    Type
    UIKit.UIColor[]

    EndX

    Gets or sets the X coordinates of the ending point.

    Declaration
    public float EndX { get; set; }
    Property Value
    Type Description
    System.Single

    The end x.

    EndY

    Gets or sets the Y coordinates of the ending point.

    Declaration
    public float EndY { get; set; }
    Property Value
    Type Description
    System.Single

    The end y.

    GradientDrawingOptions

    Gets or sets the gradient drawing options.

    Declaration
    public GradientDrawingOptions GradientDrawingOptions { get; set; }
    Property Value
    Type Description
    GradientDrawingOptions

    The gradient drawing options.

    Positions

    Gets or sets the positions.

    Declaration
    public float[] Positions { get; set; }
    Property Value
    Type
    System.Single[]

    StartX

    Gets or sets the X coordinates of the starting point.

    Declaration
    public float StartX { get; set; }
    Property Value
    Type Description
    System.Single

    The start x.

    StartY

    Gets or sets the Y coordinates of the starting point.

    Declaration
    public float StartY { get; set; }
    Property Value
    Type Description
    System.Single

    The start y.

    Methods

    Clone()

    Clone value.

    Declaration
    public object Clone()
    Returns
    Type Description
    System.Object

    return Clone.

    Implements

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