menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearGradientBrush - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LinearGradientBrush

    Represents a linear gradient brush.

    Inheritance
    System.Object
    Brush
    LinearGradientBrush
    Namespace: Syncfusion.SfDiagram.Android
    Assembly: Syncfusion.SfDiagram.Android.dll
    Syntax
    public class LinearGradientBrush : Brush

    Constructors

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

    Initializes a new instance of the LinearGradientBrush class.

    Declaration
    public LinearGradientBrush(Color[] colors, float[] positions, GradientDrawingOptions option)
    Parameters
    Type Name Description
    Android.Graphics.Color[] colors

    the Colors.

    System.Single[] positions

    Position for each color.

    GradientDrawingOptions option

    Gradient drawing option.

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

    Initializes a new instance of the LinearGradientBrush class.

    Declaration
    public LinearGradientBrush(float startX, float startY, float endX, float endY, Color[] colors, float[] positions, 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..

    Android.Graphics.Color[] colors

    the Colors.

    System.Single[] positions

    the positions.

    GradientDrawingOptions option

    Gradient drawing option.

    Properties

    Colors

    Gets or sets the colors for gradient brush.

    Declaration
    public Color[] Colors { get; set; }
    Property Value
    Type
    Android.Graphics.Color[]

    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.

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