menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramNodeBuilder

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

    Constructors

    DiagramNodeBuilder()

    Declaration
    public DiagramNodeBuilder()

    DiagramNodeBuilder(List<DiagramNode>)

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

    Methods

    Add()

    Declaration
    public void Add()

    AddInfo(Object)

    Allows the user to save custom information/data about a node/connector

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

    Annotations(Action<DiagramNodeAnnotationBuilder>)

    Declaration
    public DiagramNodeBuilder Annotations(Action<DiagramNodeAnnotationBuilder> annotations)
    Parameters
    Type Name Description
    System.Action<DiagramNodeAnnotationBuilder> annotations
    Returns
    Type
    DiagramNodeBuilder

    Annotations(List<DiagramNodeAnnotation>)

    Defines the collection of textual annotations of nodes/connectors

    Declaration
    public DiagramNodeBuilder Annotations(List<DiagramNodeAnnotation> annotations)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramNodeAnnotation> annotations
    Returns
    Type
    DiagramNodeBuilder

    BackgroundColor(String)

    Sets the background color of the shape

    Declaration
    public DiagramNodeBuilder BackgroundColor(string backgroundColor)
    Parameters
    Type Name Description
    System.String backgroundColor
    Returns
    Type
    DiagramNodeBuilder

    BorderColor(String)

    Sets the border color of the node

    Declaration
    public DiagramNodeBuilder BorderColor(string borderColor)
    Parameters
    Type Name Description
    System.String borderColor
    Returns
    Type
    DiagramNodeBuilder

    BorderWidth(Double)

    Sets the border width of the node

    Declaration
    public DiagramNodeBuilder BorderWidth(double borderWidth)
    Parameters
    Type Name Description
    System.Double borderWidth
    Returns
    Type
    DiagramNodeBuilder

    Branch(BranchTypes)

    Set the branch for the mind map

    Declaration
    public DiagramNodeBuilder Branch(BranchTypes branch)
    Parameters
    Type Name Description
    BranchTypes branch
    Returns
    Type
    DiagramNodeBuilder

    Children(String[])

    Defines the children of group element

    Declaration
    public DiagramNodeBuilder Children(string[] children)
    Parameters
    Type Name Description
    System.String[] children
    Returns
    Type
    DiagramNodeBuilder

    CollapseIcon(DiagramIconShape)

    Defines the collapsed state of a node

    Declaration
    public DiagramNodeBuilder CollapseIcon(DiagramIconShape collapseIcon)
    Parameters
    Type Name Description
    DiagramIconShape collapseIcon
    Returns
    Type
    DiagramNodeBuilder

    CollapseIcon(Action<DiagramIconShapeBuilder>)

    Declaration
    public DiagramNodeBuilder CollapseIcon(Action<DiagramIconShapeBuilder> collapseIcon)
    Parameters
    Type Name Description
    System.Action<DiagramIconShapeBuilder> collapseIcon
    Returns
    Type
    DiagramNodeBuilder

    ColumnIndex(Double)

    Used to define a index of column in the grid

    Declaration
    public DiagramNodeBuilder ColumnIndex(double columnIndex)
    Parameters
    Type Name Description
    System.Double columnIndex
    Returns
    Type
    DiagramNodeBuilder

    Columns(Object)

    Used to define the column for the grid container

    Declaration
    public DiagramNodeBuilder Columns(object columns)
    Parameters
    Type Name Description
    System.Object columns
    Returns
    Type
    DiagramNodeBuilder

    ColumnSpan(Double)

    Merge the column use the property in the grid container

    Declaration
    public DiagramNodeBuilder ColumnSpan(double columnSpan)
    Parameters
    Type Name Description
    System.Double columnSpan
    Returns
    Type
    DiagramNodeBuilder

    Constraints(NodeConstraints)

    Enables/Disables certain features of nodes None - Disable all node Constraints Select - Enables node to be selected Drag - Enables node to be Dragged Rotate - Enables node to be Rotate Shadow - Enables node to display shadow PointerEvents - Enables node to provide pointer option Delete - Enables node to delete InConnect - Enables node to provide in connect option OutConnect - Enables node to provide out connect option Individual - Enables node to provide individual resize option Expandable - Enables node to provide Expandable option AllowDrop - Enables node to provide allow to drop option Inherit - Enables node to inherit the interaction option ResizeNorthEast - Enable ResizeNorthEast of the node ResizeEast - Enable ResizeEast of the node ResizeSouthEast - Enable ResizeSouthEast of the node ResizeSouth - Enable ResizeSouthWest of the node ResizeSouthWest - Enable ResizeSouthWest of the node ResizeSouth - Enable ResizeSouth of the node ResizeSouthWest - Enable ResizeSouthWest of the node ResizeWest - Enable ResizeWest of the node ResizeNorth - Enable ResizeNorth of the node Resize - Enables the Aspect ratio fo the node AspectRatio - Enables the Aspect ratio fo the node Tooltip - Enables or disables tool tip for the Nodes InheritTooltip - Enables or disables tool tip for the Nodes ReadOnly - Enables the ReadOnly support for Annotation

    Declaration
    public DiagramNodeBuilder Constraints(NodeConstraints constraints)
    Parameters
    Type Name Description
    NodeConstraints constraints
    Returns
    Type
    DiagramNodeBuilder

    Container(Object)

    Defines the type of the container

    Declaration
    public DiagramNodeBuilder Container(object container)
    Parameters
    Type Name Description
    System.Object container
    Returns
    Type
    DiagramNodeBuilder

    Data(Object)

    Sets the data source of the node

    Declaration
    public DiagramNodeBuilder Data(object data)
    Parameters
    Type Name Description
    System.Object data
    Returns
    Type
    DiagramNodeBuilder

    DragSize(Object)

    Defines the size of a drop symbol

    Declaration
    public DiagramNodeBuilder DragSize(object dragSize)
    Parameters
    Type Name Description
    System.Object dragSize
    Returns
    Type
    DiagramNodeBuilder

    ExcludeFromLayout(Boolean)

    Defines whether the node should be automatically positioned or not. Applicable, if layout option is enabled.

    Declaration
    public DiagramNodeBuilder ExcludeFromLayout(bool excludeFromLayout)
    Parameters
    Type Name Description
    System.Boolean excludeFromLayout
    Returns
    Type
    DiagramNodeBuilder

    ExpandIcon(DiagramIconShape)

    Defines the expanded state of a node

    Declaration
    public DiagramNodeBuilder ExpandIcon(DiagramIconShape expandIcon)
    Parameters
    Type Name Description
    DiagramIconShape expandIcon
    Returns
    Type
    DiagramNodeBuilder

    ExpandIcon(Action<DiagramIconShapeBuilder>)

    Declaration
    public DiagramNodeBuilder ExpandIcon(Action<DiagramIconShapeBuilder> expandIcon)
    Parameters
    Type Name Description
    System.Action<DiagramIconShapeBuilder> expandIcon
    Returns
    Type
    DiagramNodeBuilder

    FixedUserHandles(Action<DiagramNodeFixedUserHandleBuilder>)

    Declaration
    public DiagramNodeBuilder FixedUserHandles(Action<DiagramNodeFixedUserHandleBuilder> fixedUserHandles)
    Parameters
    Type Name Description
    System.Action<DiagramNodeFixedUserHandleBuilder> fixedUserHandles
    Returns
    Type
    DiagramNodeBuilder

    FixedUserHandles(List<DiagramNodeFixedUserHandle>)

    Specifies the collection of the fixed user handle

    Declaration
    public DiagramNodeBuilder FixedUserHandles(List<DiagramNodeFixedUserHandle> fixedUserHandles)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramNodeFixedUserHandle> fixedUserHandles
    Returns
    Type
    DiagramNodeBuilder

    Flip(FlipDirection)

    Flip the element in Horizontal/Vertical directions

    Declaration
    public DiagramNodeBuilder Flip(FlipDirection flip)
    Parameters
    Type Name Description
    FlipDirection flip
    Returns
    Type
    DiagramNodeBuilder

    FlipMode(FlipMode)

    Allows you to flip only the node or along with port and label

    Declaration
    public DiagramNodeBuilder FlipMode(FlipMode flipMode)
    Parameters
    Type Name Description
    FlipMode flipMode
    Returns
    Type
    DiagramNodeBuilder

    Height(Double)

    Sets the height of the node

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

    HorizontalAlignment(HorizontalAlignment)

    Sets the horizontalAlignment of the node

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

    Id(String)

    Represents the unique id of nodes/connectors

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

    IsExpanded(Boolean)

    Defines whether the node is expanded or not

    Declaration
    public DiagramNodeBuilder IsExpanded(bool isExpanded)
    Parameters
    Type Name Description
    System.Boolean isExpanded
    Returns
    Type
    DiagramNodeBuilder

    LayoutInfo(Object)

    Sets the layout properties using node property

    Declaration
    public DiagramNodeBuilder LayoutInfo(object layoutInfo)
    Parameters
    Type Name Description
    System.Object layoutInfo
    Returns
    Type
    DiagramNodeBuilder

    Margin(DiagramMargin)

    Defines the space to be left between the node and its immediate parent

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

    Margin(Action<DiagramMarginBuilder>)

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

    MaxHeight(Double)

    Sets the maximum height of the node

    Declaration
    public DiagramNodeBuilder MaxHeight(double maxHeight)
    Parameters
    Type Name Description
    System.Double maxHeight
    Returns
    Type
    DiagramNodeBuilder

    MaxWidth(Double)

    Sets the maximum width of the node

    Declaration
    public DiagramNodeBuilder MaxWidth(double maxWidth)
    Parameters
    Type Name Description
    System.Double maxWidth
    Returns
    Type
    DiagramNodeBuilder

    MinHeight(Double)

    Sets the minimum height of the node

    Declaration
    public DiagramNodeBuilder MinHeight(double minHeight)
    Parameters
    Type Name Description
    System.Double minHeight
    Returns
    Type
    DiagramNodeBuilder

    MinWidth(Double)

    Sets the minimum width of the node

    Declaration
    public DiagramNodeBuilder MinWidth(double minWidth)
    Parameters
    Type Name Description
    System.Double minWidth
    Returns
    Type
    DiagramNodeBuilder

    OffsetX(Double)

    Sets the x-coordinate of the position of the node

    Declaration
    public DiagramNodeBuilder OffsetX(double offsetX)
    Parameters
    Type Name Description
    System.Double offsetX
    Returns
    Type
    DiagramNodeBuilder

    OffsetY(Double)

    Sets the y-coordinate of the position of the node

    Declaration
    public DiagramNodeBuilder OffsetY(double offsetY)
    Parameters
    Type Name Description
    System.Double offsetY
    Returns
    Type
    DiagramNodeBuilder

    Padding(Object)

    Defines the space between the group node edges and its children

    Declaration
    public DiagramNodeBuilder Padding(object padding)
    Parameters
    Type Name Description
    System.Object padding
    Returns
    Type
    DiagramNodeBuilder

    Pivot(DiagramPoint)

    Sets the reference point, that will act as the offset values(offsetX, offsetY) of a node

    Declaration
    public DiagramNodeBuilder Pivot(DiagramPoint pivot)
    Parameters
    Type Name Description
    DiagramPoint pivot
    Returns
    Type
    DiagramNodeBuilder

    Pivot(Action<DiagramPointBuilder>)

    Declaration
    public DiagramNodeBuilder Pivot(Action<DiagramPointBuilder> pivot)
    Parameters
    Type Name Description
    System.Action<DiagramPointBuilder> pivot
    Returns
    Type
    DiagramNodeBuilder

    Ports(Action<DiagramPortBuilder>)

    Declaration
    public DiagramNodeBuilder Ports(Action<DiagramPortBuilder> ports)
    Parameters
    Type Name Description
    System.Action<DiagramPortBuilder> ports
    Returns
    Type
    DiagramNodeBuilder

    Ports(List<DiagramPort>)

    Defines the collection of connection points of nodes/connectors

    Declaration
    public DiagramNodeBuilder Ports(List<DiagramPort> ports)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramPort> ports
    Returns
    Type
    DiagramNodeBuilder

    PreviewSize(Object)

    Defines the size of the symbol preview

    Declaration
    public DiagramNodeBuilder PreviewSize(object previewSize)
    Parameters
    Type Name Description
    System.Object previewSize
    Returns
    Type
    DiagramNodeBuilder

    RotateAngle(Double)

    Sets the rotate angle of the node

    Declaration
    public DiagramNodeBuilder RotateAngle(double rotateAngle)
    Parameters
    Type Name Description
    System.Double rotateAngle
    Returns
    Type
    DiagramNodeBuilder

    RowIndex(Double)

    Used to define a index of row in the grid

    Declaration
    public DiagramNodeBuilder RowIndex(double rowIndex)
    Parameters
    Type Name Description
    System.Double rowIndex
    Returns
    Type
    DiagramNodeBuilder

    Rows(Object)

    Used to define the rows for the grid container

    Declaration
    public DiagramNodeBuilder Rows(object rows)
    Parameters
    Type Name Description
    System.Object rows
    Returns
    Type
    DiagramNodeBuilder

    RowSpan(Double)

    Merge the row use the property in the grid container

    Declaration
    public DiagramNodeBuilder RowSpan(double rowSpan)
    Parameters
    Type Name Description
    System.Double rowSpan
    Returns
    Type
    DiagramNodeBuilder

    Shadow(DiagramShadow)

    Defines the shadow of a shape/path

    Declaration
    public DiagramNodeBuilder Shadow(DiagramShadow shadow)
    Parameters
    Type Name Description
    DiagramShadow shadow
    Returns
    Type
    DiagramNodeBuilder

    Shadow(Action<DiagramShadowBuilder>)

    Declaration
    public DiagramNodeBuilder Shadow(Action<DiagramShadowBuilder> shadow)
    Parameters
    Type Name Description
    System.Action<DiagramShadowBuilder> shadow
    Returns
    Type
    DiagramNodeBuilder

    Shape(Object)

    Defines the shape of a node

    Declaration
    public DiagramNodeBuilder Shape(object shape)
    Parameters
    Type Name Description
    System.Object shape
    Returns
    Type
    DiagramNodeBuilder

    Style(Action<DiagramTextStyleBuilder>)

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

    Style(Object)

    Sets the shape style of the node

    Declaration
    public DiagramNodeBuilder Style(object style)
    Parameters
    Type Name Description
    System.Object style
    Returns
    Type
    DiagramNodeBuilder

    SymbolInfo(Object)

    Defines the symbol info of a connector

    Declaration
    public DiagramNodeBuilder SymbolInfo(object symbolInfo)
    Parameters
    Type Name Description
    System.Object symbolInfo
    Returns
    Type
    DiagramNodeBuilder

    Tooltip(DiagramDiagramTooltip)

    defines the tooltip for the node

    Declaration
    public DiagramNodeBuilder Tooltip(DiagramDiagramTooltip tooltip)
    Parameters
    Type Name Description
    DiagramDiagramTooltip tooltip
    Returns
    Type
    DiagramNodeBuilder

    Tooltip(Action<DiagramDiagramTooltipBuilder>)

    Declaration
    public DiagramNodeBuilder Tooltip(Action<DiagramDiagramTooltipBuilder> tooltip)
    Parameters
    Type Name Description
    System.Action<DiagramDiagramTooltipBuilder> tooltip
    Returns
    Type
    DiagramNodeBuilder

    VerticalAlignment(VerticalAlignment)

    Sets the verticalAlignment of the node

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

    Visible(Boolean)

    Sets the visibility of the node/connector

    Declaration
    public DiagramNodeBuilder Visible(bool visible)
    Parameters
    Type Name Description
    System.Boolean visible
    Returns
    Type
    DiagramNodeBuilder

    Width(Double)

    Sets the width of the node

    Declaration
    public DiagramNodeBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type
    DiagramNodeBuilder

    Wrapper(Object)

    Sets or gets the UI of a node

    Declaration
    public DiagramNodeBuilder Wrapper(object wrapper)
    Parameters
    Type Name Description
    System.Object wrapper
    Returns
    Type
    DiagramNodeBuilder

    ZIndex(Double)

    Defines the visual order of the node/connector in DOM

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