menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramPortBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramPortBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    DiagramPortBuilder
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramPortBuilder : ControlBuilder

    Constructors

    DiagramPortBuilder()

    Declaration
    public DiagramPortBuilder()

    DiagramPortBuilder(List<DiagramPort>)

    Declaration
    public DiagramPortBuilder(List<DiagramPort> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramPort> collection

    Methods

    Add()

    Declaration
    public void Add()

    AddInfo(Object)

    Allows the user to save custom information/data about a port

    Declaration
    public DiagramPortBuilder AddInfo(object addInfo)
    Parameters
    Type Name Description
    System.Object addInfo
    Returns
    Type
    DiagramPortBuilder

    ConnectionDirection(PortConnectionDirection)

    Defines the allowed direction for connections to the port Auto - Maintains the default behavior of automatic direction calculation. Left - Restricts connections to only connect to the left side of the port. Top - Restricts connections to only connect to the top side of the port. Right - Restricts connections to only connect to the right side of the port. Bottom - Restricts connections to only connect to the bottom side of the port.

    Declaration
    public DiagramPortBuilder ConnectionDirection(PortConnectionDirection connectionDirection)
    Parameters
    Type Name Description
    PortConnectionDirection connectionDirection
    Returns
    Type
    DiagramPortBuilder

    Constraints(PortConstraints)

    Defines the constraints of port

    Declaration
    public DiagramPortBuilder Constraints(PortConstraints constraints)
    Parameters
    Type Name Description
    PortConstraints constraints
    Returns
    Type
    DiagramPortBuilder

    Height(Double)

    Sets the height of the port

    Declaration
    public DiagramPortBuilder Height(double height)
    Parameters
    Type Name Description
    System.Double height
    Returns
    Type
    DiagramPortBuilder

    HorizontalAlignment(HorizontalAlignment)

    Sets the horizontal alignment of the port with respect to its immediate parent(node/connector) Stretch - Stretches the diagram element throughout its immediate parent Left - Aligns the diagram element at the left of its immediate parent Right - Aligns the diagram element at the right of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public DiagramPortBuilder HorizontalAlignment(HorizontalAlignment horizontalAlignment)
    Parameters
    Type Name Description
    HorizontalAlignment horizontalAlignment
    Returns
    Type
    DiagramPortBuilder

    Id(String)

    Defines the unique id of the port

    Declaration
    public DiagramPortBuilder Id(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type
    DiagramPortBuilder

    InEdges(String[])

    Defines the collection of the objects that are connected to a particular port

    Declaration
    public DiagramPortBuilder InEdges(string[] inEdges)
    Parameters
    Type Name Description
    System.String[] inEdges
    Returns
    Type
    DiagramPortBuilder

    Margin(DiagramMargin)

    Defines the space that the port has to be moved from its actual position

    Declaration
    public DiagramPortBuilder Margin(DiagramMargin margin)
    Parameters
    Type Name Description
    DiagramMargin margin
    Returns
    Type
    DiagramPortBuilder

    Margin(Action<DiagramMarginBuilder>)

    Declaration
    public DiagramPortBuilder Margin(Action<DiagramMarginBuilder> margin)
    Parameters
    Type Name Description
    System.Action<DiagramMarginBuilder> margin
    Returns
    Type
    DiagramPortBuilder

    Offset(DiagramPoint)

    Defines the position of the port with respect to the boundaries of nodes/connector

    Declaration
    public DiagramPortBuilder Offset(DiagramPoint offset)
    Parameters
    Type Name Description
    DiagramPoint offset
    Returns
    Type
    DiagramPortBuilder

    Offset(Action<DiagramPointBuilder>)

    Declaration
    public DiagramPortBuilder Offset(Action<DiagramPointBuilder> offset)
    Parameters
    Type Name Description
    System.Action<DiagramPointBuilder> offset
    Returns
    Type
    DiagramPortBuilder

    OutEdges(String[])

    Defines the collection of the objects that are connected to a particular port

    Declaration
    public DiagramPortBuilder OutEdges(string[] outEdges)
    Parameters
    Type Name Description
    System.String[] outEdges
    Returns
    Type
    DiagramPortBuilder

    PathData(String)

    Defines the geometry of the port

    Declaration
    public DiagramPortBuilder PathData(string pathData)
    Parameters
    Type Name Description
    System.String pathData
    Returns
    Type
    DiagramPortBuilder

    Shape(PortShapes)

    Defines the type of the port shape X - Sets the decorator shape as X Circle - Sets the decorator shape as Circle Square - Sets the decorator shape as Square Custom - Sets the decorator shape as Custom

    Declaration
    public DiagramPortBuilder Shape(PortShapes shape)
    Parameters
    Type Name Description
    PortShapes shape
    Returns
    Type
    DiagramPortBuilder

    Style(DiagramShapeStyle)

    Defines the appearance of the port

    Declaration
    public DiagramPortBuilder Style(DiagramShapeStyle style)
    Parameters
    Type Name Description
    DiagramShapeStyle style
    Returns
    Type
    DiagramPortBuilder

    Style(Action<DiagramShapeStyleBuilder>)

    Declaration
    public DiagramPortBuilder Style(Action<DiagramShapeStyleBuilder> style)
    Parameters
    Type Name Description
    System.Action<DiagramShapeStyleBuilder> style
    Returns
    Type
    DiagramPortBuilder

    Tooltip(Object)

    defines the tooltip for the Ports

    Declaration
    public DiagramPortBuilder Tooltip(object tooltip)
    Parameters
    Type Name Description
    System.Object tooltip
    Returns
    Type
    DiagramPortBuilder

    VerticalAlignment(VerticalAlignment)

    Sets the vertical alignment of the port with respect to its immediate parent(node/connector) Stretch - Stretches the diagram element throughout its immediate parent Top - Aligns the diagram element at the top of its immediate parent Bottom - Aligns the diagram element at the bottom of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public DiagramPortBuilder VerticalAlignment(VerticalAlignment verticalAlignment)
    Parameters
    Type Name Description
    VerticalAlignment verticalAlignment
    Returns
    Type
    DiagramPortBuilder

    Visibility(PortVisibility)

    Defines the type of the port visibility Visible - Always shows the port Hidden - Always hides the port Hover - Shows the port when the mouse hovers over a node Connect - Shows the port when a connection end point is dragged over a node

    Declaration
    public DiagramPortBuilder Visibility(PortVisibility visibility)
    Parameters
    Type Name Description
    PortVisibility visibility
    Returns
    Type
    DiagramPortBuilder

    Width(Double)

    Sets the width of the port

    Declaration
    public DiagramPortBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type
    DiagramPortBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved