Class DiagramNode
Inheritance
Namespace: Syncfusion.EJ2.Diagrams
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramNode : EJTagHelper
Constructors
DiagramNode()
Declaration
public DiagramNode()
Properties
AddInfo
Allows the user to save custom information/data about a node/connector
Declaration
public object AddInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Annotations
Defines the collection of textual annotations of nodes/connectors
Declaration
public List<DiagramNodeAnnotation> Annotations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DiagramNodeAnnotation> | The default value is null |
BackgroundColor
Sets the background color of the shape
Declaration
public string BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
BorderColor
Sets the border color of the node
Declaration
public string BorderColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "none" |
BorderWidth
Sets the border width of the node
Declaration
public double BorderWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Branch
Set the branch for the mind map
Declaration
public BranchTypes Branch { get; set; }
Property Value
Type | Description |
---|---|
BranchTypes | The default value is BranchTypes. |
Children
Defines the children of group element
Declaration
public string[] Children { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The default value is null |
CollapseIcon
Defines the collapsed state of a node
Declaration
public DiagramIconShape CollapseIcon { get; set; }
Property Value
Type | Description |
---|---|
DiagramIconShape | The default value is null |
ColumnIndex
Used to define a index of column in the grid
Declaration
public double ColumnIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
Columns
Used to define the column for the grid container
Declaration
public object Columns { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ColumnSpan
Merge the column use the property in the grid container
Declaration
public double ColumnSpan { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
Constraints
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 NodeConstraints Constraints { get; set; }
Property Value
Type | Description |
---|---|
NodeConstraints | The default value is NodeConstraints.Default |
Container
Defines the type of the container
Declaration
public object Container { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Data
Sets the data source of the node
Declaration
public object Data { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
DragSize
Defines the size of a drop symbol
Declaration
public object DragSize { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ExcludeFromLayout
Defines whether the node should be automatically positioned or not. Applicable, if layout option is enabled.
Declaration
public bool ExcludeFromLayout { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
ExpandIcon
Defines the expanded state of a node
Declaration
public DiagramIconShape ExpandIcon { get; set; }
Property Value
Type | Description |
---|---|
DiagramIconShape | The default value is null |
FixedUserHandles
Specifies the collection of the fixed user handle
Declaration
public List<DiagramNodeFixedUserHandle> FixedUserHandles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DiagramNodeFixedUserHandle> | The default value is null |
Flip
Flip the element in Horizontal/Vertical directions
Declaration
public FlipDirection Flip { get; set; }
Property Value
Type | Description |
---|---|
FlipDirection | The default value is FlipDirection.None |
FlipMode
Allows you to flip only the node or along with port and label
Declaration
public FlipMode FlipMode { get; set; }
Property Value
Type | Description |
---|---|
FlipMode | The default value is FlipMode.All |
Height
Sets the height of the node
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
HorizontalAlignment
Sets the horizontalAlignment of the node
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment | The default value is HorizontalAlignment.Stretch |
Id
Represents the unique id of nodes/connectors
Declaration
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Overrides
IsExpanded
Defines whether the node is expanded or not
Declaration
public bool IsExpanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
LayoutInfo
Sets the layout properties using node property
Declaration
public object LayoutInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Margin
Defines the space to be left between the node and its immediate parent
Declaration
public DiagramMargin Margin { get; set; }
Property Value
Type | Description |
---|---|
DiagramMargin | The default value is null |
MaxHeight
Sets the maximum height of the node
Declaration
public double MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
MaxWidth
Sets the maximum width of the node
Declaration
public double MaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
MinHeight
Sets the minimum height of the node
Declaration
public double MinHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
MinWidth
Sets the minimum width of the node
Declaration
public double MinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
OffsetX
Sets the x-coordinate of the position of the node
Declaration
public double OffsetX { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
OffsetY
Sets the y-coordinate of the position of the node
Declaration
public double OffsetY { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Padding
Defines the space between the group node edges and its children
Declaration
public object Padding { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Pivot
Sets the reference point, that will act as the offset values(offsetX, offsetY) of a node
Declaration
public DiagramPoint Pivot { get; set; }
Property Value
Type | Description |
---|---|
DiagramPoint | The default value is null |
Ports
Defines the collection of connection points of nodes/connectors
Declaration
public List<DiagramPort> Ports { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DiagramPort> | The default value is null |
PreviewSize
Defines the size of the symbol preview
Declaration
public object PreviewSize { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
RotateAngle
Sets the rotate angle of the node
Declaration
public double RotateAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
RowIndex
Used to define a index of row in the grid
Declaration
public double RowIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
Rows
Used to define the rows for the grid container
Declaration
public object Rows { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
RowSpan
Merge the row use the property in the grid container
Declaration
public double RowSpan { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
Shadow
Defines the shadow of a shape/path
Declaration
public DiagramShadow Shadow { get; set; }
Property Value
Type | Description |
---|---|
DiagramShadow | The default value is null |
Shape
Defines the shape of a node
Declaration
public object Shape { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Style
Sets the shape style of the node
Declaration
public object Style { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
SymbolInfo
Defines the symbol info of a connector
Declaration
public object SymbolInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Tooltip
defines the tooltip for the node
Declaration
public DiagramDiagramTooltip Tooltip { get; set; }
Property Value
Type | Description |
---|---|
DiagramDiagramTooltip | The default value is null |
VerticalAlignment
Sets the verticalAlignment of the node
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type | Description |
---|---|
VerticalAlignment | The default value is VerticalAlignment.Stretch |
Visible
Sets the visibility of the node/connector
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Width
Sets the width of the node
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is NaN |
Wrapper
Sets or gets the UI of a node
Declaration
public object Wrapper { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ZIndex
Defines the visual order of the node/connector in DOM
Declaration
public double ZIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5e-324 |