Class Node
Represents a node/shape in the diagram.
Implements
Inherited Members
Namespace: Syncfusion.SfDiagram.iOS
Assembly: Syncfusion.SfDiagram.iOS.dll
Syntax
public class Node : DiagramBaseItem, ICloneable
Constructors
Node()
Initializes a new instance of the Node class.
Declaration
public Node()
Node(Single, Single)
Initializes a new instance of the Node class.
Declaration
public Node(float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | Width of the node. |
System.Single | height | Height of the node. |
Node(Single, Single, ShapeType)
Initializes a new instance of the Node class.
Declaration
public Node(float width, float height, ShapeType shapeType)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | Width of the node. |
System.Single | height | Height of the node. |
ShapeType | shapeType | Type of the shape. |
Node(Single, Single, Single, Single)
Initializes a new instance of the Node class.
Declaration
public Node(float offsetX, float offsetY, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | offsetX | X Position. |
System.Single | offsetY | Y Position. |
System.Single | width | Width of the node. |
System.Single | height | Height of the node. |
Node(Single, Single, Single, Single, ShapeType)
Initializes a new instance of the Node class.
Declaration
public Node(float offsetX, float offsetY, float width, float height, ShapeType shapeType)
Parameters
Type | Name | Description |
---|---|---|
System.Single | offsetX | X Position. |
System.Single | offsetY | Y Position. |
System.Single | width | Width of the node. |
System.Single | height | Height of the node. |
ShapeType | shapeType | Type of the shape. |
Properties
Annotations
Gets or sets represents the collection of annotation that this node contains.
Declaration
public AnnotationCollection Annotations { get; set; }
Property Value
Type | Description |
---|---|
AnnotationCollection | Defines the Node Annotation Collection. |
BoundingRect
Gets the bounding rectangle.
Declaration
public CGRect BoundingRect { get; }
Property Value
Type | Description |
---|---|
CoreGraphics.CGRect | Bounding rectangle of diagram node. |
Children
Gets the children of the node.
Declaration
public IEnumerable<Node> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Node> | Defines the Node Children. |
Content
Gets or sets the content of the node.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
CornerRadius
Gets or sets represents the corner radius value. This is applicable for shape like rounded rectangle.
Declaration
public float CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The corner radius. |
EnableDrag
Gets or sets a value indicating whether this Node can be dragged or not.
Declaration
public bool EnableDrag { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnableResize
Gets or sets a value indicating whether this Node can be resized or not.
Declaration
public bool EnableResize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnableRotation
Gets or sets a value indicating whether this Node can be rotated or not.
Declaration
public bool EnableRotation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnableTextEditing
Gets or sets a value indicating whether the text within this Node can be edited or not.
Declaration
public bool EnableTextEditing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ExcludeFromLayout
Gets or sets a value indicating whether gets or sets the ExcludeFromLayout of the node.
Declaration
public bool ExcludeFromLayout { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defines Node ExcludeFromLayout. |
Height
Gets or sets the height of the node.
Declaration
public nfloat Height { get; set; }
Property Value
Type | Description |
---|---|
System.nfloat | Defines Node Height. |
InConnectors
Gets inConnectors.
Declaration
public IEnumerable<Connector> InConnectors { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<Connector> |
IsExpanded
Gets or sets a value indicating whether gets or sets a value that indicates whether the node is in expand state if the node has children.
Declaration
public bool IsExpanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Expand or collapse the connected child. |
IsLocked
Gets or sets a value indicating whether this Node is locked.
Declaration
public bool IsLocked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
OffsetX
Gets or sets the offset X of the node.
Declaration
public nfloat OffsetX { get; set; }
Property Value
Type | Description |
---|---|
System.nfloat | Defines Node OffsetX. |
OffsetY
Gets or sets the offset Y of the node.
Declaration
public nfloat OffsetY { get; set; }
Property Value
Type | Description |
---|---|
System.nfloat | Defines Node OffsetY. |
OutConnectors
Gets outConnectors.
Declaration
public IEnumerable<Connector> OutConnectors { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<Connector> |
Ports
Gets or sets represents the collection of ports (points where the connector are meant to be connected).
Declaration
public PortCollection Ports { get; set; }
Property Value
Type |
---|
PortCollection |
RotationAngle
Gets or sets the value which indicates the rotated angle.
Declaration
public float RotationAngle { get; set; }
Property Value
Type |
---|
System.Single |
ShapeType
Gets or sets the type of the shape.
Declaration
public ShapeType ShapeType { get; set; }
Property Value
Type | Description |
---|---|
ShapeType | Defines the type of shape. |
SiblingSpace
Gets or sets the SiblingSpace of the node.
Declaration
public SiblingSpace SiblingSpace { get; set; }
Property Value
Type | Description |
---|---|
SiblingSpace | Defines Node SiblingSpace. |
Template
Gets or sets the template.
Declaration
public UIView Template { get; set; }
Property Value
Type | Description |
---|---|
UIKit.UIView | Template for Node view. |
Width
Gets or sets the width of the node.
Declaration
public nfloat Width { get; set; }
Property Value
Type | Description |
---|---|
System.nfloat | Defines Node width. |
Methods
UpdateSfGraphics(SfGraphics)
Update the graphics to the node.
Declaration
public void UpdateSfGraphics(SfGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
SfGraphics | graphics | graphics value. |