Class DiagramNodeBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
DiagramNodeBuilder
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
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
Annotations(Action<DiagramNodeAnnotationBuilder>)
Declaration
public DiagramNodeBuilder Annotations(Action<DiagramNodeAnnotationBuilder> annotations)
Parameters
Returns
Annotations(List<DiagramNodeAnnotation>)
Defines the collection of textual annotations of nodes/connectors
Declaration
public DiagramNodeBuilder Annotations(List<DiagramNodeAnnotation> annotations)
Parameters
Returns
BackgroundColor(String)
Sets the background color of the shape
Declaration
public DiagramNodeBuilder BackgroundColor(string backgroundColor)
Parameters
Type |
Name |
Description |
System.String |
backgroundColor |
|
Returns
BorderColor(String)
Sets the border color of the node
Declaration
public DiagramNodeBuilder BorderColor(string borderColor)
Parameters
Type |
Name |
Description |
System.String |
borderColor |
|
Returns
BorderWidth(Double)
Sets the border width of the node
Declaration
public DiagramNodeBuilder BorderWidth(double borderWidth)
Parameters
Type |
Name |
Description |
System.Double |
borderWidth |
|
Returns
Branch(BranchTypes)
Set the branch for the mind map
Declaration
public DiagramNodeBuilder Branch(BranchTypes branch)
Parameters
Returns
Children(String[])
Defines the children of group element
Declaration
public DiagramNodeBuilder Children(string[] children)
Parameters
Type |
Name |
Description |
System.String[] |
children |
|
Returns
CollapseIcon(DiagramIconShape)
Defines the collapsed state of a node
Declaration
public DiagramNodeBuilder CollapseIcon(DiagramIconShape collapseIcon)
Parameters
Returns
CollapseIcon(Action<DiagramIconShapeBuilder>)
Declaration
public DiagramNodeBuilder CollapseIcon(Action<DiagramIconShapeBuilder> collapseIcon)
Parameters
Returns
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
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
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
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
Returns
Container(Object)
Defines the type of the container
Declaration
public DiagramNodeBuilder Container(object container)
Parameters
Type |
Name |
Description |
System.Object |
container |
|
Returns
Data(Object)
Sets the data source of the node
Declaration
public DiagramNodeBuilder Data(object data)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
Returns
DragSize(Object)
Defines the size of a drop symbol
Declaration
public DiagramNodeBuilder DragSize(object dragSize)
Parameters
Type |
Name |
Description |
System.Object |
dragSize |
|
Returns
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
ExpandIcon(DiagramIconShape)
Defines the expanded state of a node
Declaration
public DiagramNodeBuilder ExpandIcon(DiagramIconShape expandIcon)
Parameters
Returns
ExpandIcon(Action<DiagramIconShapeBuilder>)
Declaration
public DiagramNodeBuilder ExpandIcon(Action<DiagramIconShapeBuilder> expandIcon)
Parameters
Returns
FixedUserHandles(Action<DiagramNodeFixedUserHandleBuilder>)
Declaration
public DiagramNodeBuilder FixedUserHandles(Action<DiagramNodeFixedUserHandleBuilder> fixedUserHandles)
Parameters
Returns
FixedUserHandles(List<DiagramNodeFixedUserHandle>)
Specifies the collection of the fixed user handle
Declaration
public DiagramNodeBuilder FixedUserHandles(List<DiagramNodeFixedUserHandle> fixedUserHandles)
Parameters
Returns
Flip(FlipDirection)
Flip the element in Horizontal/Vertical directions
Declaration
public DiagramNodeBuilder Flip(FlipDirection flip)
Parameters
Returns
FlipMode(FlipMode)
Allows you to flip only the node or along with port and label
Declaration
public DiagramNodeBuilder FlipMode(FlipMode flipMode)
Parameters
Returns
Height(Double)
Sets the height of the node
Declaration
public DiagramNodeBuilder Height(double height)
Parameters
Type |
Name |
Description |
System.Double |
height |
|
Returns
HorizontalAlignment(HorizontalAlignment)
Sets the horizontalAlignment of the node
Declaration
public DiagramNodeBuilder HorizontalAlignment(HorizontalAlignment horizontalAlignment)
Parameters
Returns
Id(String)
Represents the unique id of nodes/connectors
Declaration
public DiagramNodeBuilder Id(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
IsExpanded(Boolean)
Defines whether the node is expanded or not
Declaration
public DiagramNodeBuilder IsExpanded(bool isExpanded)
Parameters
Type |
Name |
Description |
System.Boolean |
isExpanded |
|
Returns
LayoutInfo(Object)
Sets the layout properties using node property
Declaration
public DiagramNodeBuilder LayoutInfo(object layoutInfo)
Parameters
Type |
Name |
Description |
System.Object |
layoutInfo |
|
Returns
Margin(DiagramMargin)
Defines the space to be left between the node and its immediate parent
Declaration
public DiagramNodeBuilder Margin(DiagramMargin margin)
Parameters
Returns
Margin(Action<DiagramMarginBuilder>)
Declaration
public DiagramNodeBuilder Margin(Action<DiagramMarginBuilder> margin)
Parameters
Returns
MaxHeight(Double)
Sets the maximum height of the node
Declaration
public DiagramNodeBuilder MaxHeight(double maxHeight)
Parameters
Type |
Name |
Description |
System.Double |
maxHeight |
|
Returns
MaxWidth(Double)
Sets the maximum width of the node
Declaration
public DiagramNodeBuilder MaxWidth(double maxWidth)
Parameters
Type |
Name |
Description |
System.Double |
maxWidth |
|
Returns
MinHeight(Double)
Sets the minimum height of the node
Declaration
public DiagramNodeBuilder MinHeight(double minHeight)
Parameters
Type |
Name |
Description |
System.Double |
minHeight |
|
Returns
MinWidth(Double)
Sets the minimum width of the node
Declaration
public DiagramNodeBuilder MinWidth(double minWidth)
Parameters
Type |
Name |
Description |
System.Double |
minWidth |
|
Returns
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
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
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
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
Returns
Pivot(Action<DiagramPointBuilder>)
Declaration
public DiagramNodeBuilder Pivot(Action<DiagramPointBuilder> pivot)
Parameters
Returns
Ports(Action<DiagramPortBuilder>)
Declaration
public DiagramNodeBuilder Ports(Action<DiagramPortBuilder> ports)
Parameters
Returns
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
PreviewSize(Object)
Defines the size of the symbol preview
Declaration
public DiagramNodeBuilder PreviewSize(object previewSize)
Parameters
Type |
Name |
Description |
System.Object |
previewSize |
|
Returns
RotateAngle(Double)
Sets the rotate angle of the node
Declaration
public DiagramNodeBuilder RotateAngle(double rotateAngle)
Parameters
Type |
Name |
Description |
System.Double |
rotateAngle |
|
Returns
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
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
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
Shadow(DiagramShadow)
Defines the shadow of a shape/path
Declaration
public DiagramNodeBuilder Shadow(DiagramShadow shadow)
Parameters
Returns
Shadow(Action<DiagramShadowBuilder>)
Declaration
public DiagramNodeBuilder Shadow(Action<DiagramShadowBuilder> shadow)
Parameters
Returns
Shape(Object)
Defines the shape of a node
Declaration
public DiagramNodeBuilder Shape(object shape)
Parameters
Type |
Name |
Description |
System.Object |
shape |
|
Returns
Style(Action<DiagramTextStyleBuilder>)
Declaration
public DiagramNodeBuilder Style(Action<DiagramTextStyleBuilder> style)
Parameters
Returns
Style(Object)
Sets the shape style of the node
Declaration
public DiagramNodeBuilder Style(object style)
Parameters
Type |
Name |
Description |
System.Object |
style |
|
Returns
SymbolInfo(Object)
Defines the symbol info of a connector
Declaration
public DiagramNodeBuilder SymbolInfo(object symbolInfo)
Parameters
Type |
Name |
Description |
System.Object |
symbolInfo |
|
Returns
defines the tooltip for the node
Declaration
public DiagramNodeBuilder Tooltip(DiagramDiagramTooltip tooltip)
Parameters
Returns
Declaration
public DiagramNodeBuilder Tooltip(Action<DiagramDiagramTooltipBuilder> tooltip)
Parameters
Returns
VerticalAlignment(VerticalAlignment)
Sets the verticalAlignment of the node
Declaration
public DiagramNodeBuilder VerticalAlignment(VerticalAlignment verticalAlignment)
Parameters
Returns
Visible(Boolean)
Sets the visibility of the node/connector
Declaration
public DiagramNodeBuilder Visible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Returns
Width(Double)
Sets the width of the node
Declaration
public DiagramNodeBuilder Width(double width)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Returns
Wrapper(Object)
Sets or gets the UI of a node
Declaration
public DiagramNodeBuilder Wrapper(object wrapper)
Parameters
Type |
Name |
Description |
System.Object |
wrapper |
|
Returns
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