menu

ASP.NET MVC

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

    Show / Hide Table of Contents

    Class Stop

    The stop class for gradient

    Inheritance
    System.Object
    EJTagHelper
    Stop
    Inherited Members
    EJTagHelper.GetControlDetails()
    EJTagHelper.GetControlDetails(String)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class Stop : EJTagHelper

    Constructors

    Stop()

    Initializes a new instance of the Stop class.

    Declaration
    public Stop()

    Stop(Stop)

    Initializes a new instance of the Stop class.

    Declaration
    public Stop(Stop src)
    Parameters
    Type Name Description
    Stop src

    Object to copy.

    Properties

    Color

    Gets or sets the color of the stop region

    Declaration
    [JsonProperty("color")]
    public string Color { get; set; }
    Property Value
    Type Description
    System.String

    "transparent"

    Examples
                   RadialGradient Gradient = new RadialGradient() { Type = "radial" };
                   Gradient.Stops.Add(new Stop() { Color = "red" });
                   Gradient.Stops.Add(new Stop() { Color = "pink" });
                   Node Node = new Node() { Gradient = Gradient };

    Offset

    Gets or sets the region of the stop

    Declaration
    [JsonProperty("offset")]
    public double Offset { get; set; }
    Property Value
    Type Description
    System.Double

    0

    Examples
               RadialGradient Gradient = new RadialGradient() { Type = "radial" };
               Gradient.Stops.Add(new Stop() { Color = "red", Offset = 10 });
               Gradient.Stops.Add(new Stop() { Color = "pink", Offset = 60 });
               Node Node = new Node() { Gradient = Gradient };

    Opacity

    Gets or sets the color opacity of the stop region

    Declaration
    [JsonProperty("opacity")]
    public double Opacity { get; set; }
    Property Value
    Type Description
    System.Double

    0

    Examples
               RadialGradient Gradient = new RadialGradient() { Type = "radial" };
               Gradient.Stops.Add(new Stop() { Color = "red", Offset = 1 });
               Gradient.Stops.Add(new Stop() { Color = "pink", Opacity = 0 });
               Node Node = new Node() { Gradient = Gradient };

    Methods

    Clone()

    Creates a new object that is a copy of the current instance.

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

    Copy of the object this method is invoked against.

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