menu

ASP.NET MVC

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

    Show / Hide Table of Contents

    Class Phase

    Phases are the sub-processes that are used to break the swimlane into multiple smaller regions.

    Inheritance
    System.Object
    EJTagHelper
    Phase
    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 Phase : EJTagHelper

    Constructors

    Phase()

    Declaration
    public Phase()

    Properties

    IsPhase

    Gets or sets the object type as Phase

    Declaration
    [JsonProperty("isPhase")]
    public bool IsPhase { get; set; }
    Property Value
    Type Description
    System.Boolean

    true

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.IsSwimlane = true;
               SwimLane.Phases.Add(new Phase() { Name = "lane1", IsPhase = true });
               Model.Nodes.Add(SwimLane);

    Label

    Gets or sets the header of the smaller regions

    Declaration
    [JsonProperty("label")]
    public Label Label { get; set; }
    Property Value
    Type Description
    Label

    null

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, Label = new Label() { Text = "phase" } });
               Model.Nodes.Add(SwimLane);

    LineColor

    Gets or sets the line color of the splitter that splits adjacent phases.

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

    "#606060"

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, LineColor = "red" });
               Model.Nodes.Add(SwimLane);

    LineDashArray

    Gets or sets the dash array that used to stroke the phase splitter

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

    "3,3"

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, LineDashArray = "3,3" });
               Model.Nodes.Add(SwimLane);

    LineWidth

    Gets or sets the line color of the splitter that splits adjacent phases.

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

    "#606060"

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, LineColor = "red" });
               Model.Nodes.Add(SwimLane);

    Name

    Gets or sets the unique identifier of the phase

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

    String.Empty

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, LineWidth = 3 });
               Model.Nodes.Add(SwimLane);
               ViewData["diagramModel"] = Model;

    Offset

    Gets or sets the length of the smaller region(phase) of a swimlane

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

    0

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, LineWidth = 3 });
               Model.Nodes.Add(SwimLane); 

    Orientation

    Gets or sets the orientation of the phase

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

    "horizontal"

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Offset = 150, Orientation = "vertical" });
               Model.Nodes.Add(SwimLane);

    PaletteItem

    Gets or sets size and preview size of the node to add that to symbol palette

    Declaration
    [JsonProperty("paletteItem")]
    public PaletteItem PaletteItem { get; set; }
    Property Value
    Type Description
    PaletteItem

    null

    Examples
               SymbolPaletteProperties SymbolPalette = new SymbolPaletteProperties();
               SymbolPalette.Palettes = new Collection();
               Palette Palette = new Palette("Connectors");
               Palette.Expanded = true;
               Palette.Items.Add(new Phase() { Label = new Label() { Text = "label" } });
               ViewData["PaletteModel"] = SymbolPalette;

    Parent

    Gets or sets the parent name or swimlane name to draw the phase

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

    String.Empty

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Type = "phase", Parent = "swimlane" });
               Model.Nodes.Add(SwimLane);

    Type

    Gets or sets the type as "phase"

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

    "phase"

    Examples
               DiagramProperties Model = new DiagramProperties();
               SwimLane SwimLane = new SwimLane();
               SwimLane.Width = 500;
               SwimLane.Phases.Add(new Phase() { Name = "Phas1", Type = "phase", Offset = 150, LineWidth = 3 });
               Model.Nodes.Add(SwimLane);
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved