Class Node
Represents a node/shape in the diagram.
Inherited Members
Namespace: Syncfusion.SfDiagram.Android
Assembly: Syncfusion.SfDiagram.Android.dll
Syntax
public class Node : DiagramBaseItem
Constructors
Node(Context)
Initializes a new instance of the Node class.
Declaration
public Node(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The context. |
Node(Single, Single, Context)
Initializes a new instance of the Node class. Create the Node instance with specified width and height.
Declaration
public Node(float width, float height, Context context)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | Width of the node. |
System.Single | height | Height of the node. |
Android.Content.Context | context | Context of the Node. |
Node(Single, Single, ShapeType, Context)
Initializes a new instance of the Node class. Create the Node instance with specified width, height and type of shape.
Declaration
public Node(float width, float height, ShapeType shapeType, Context context)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | Width of the node. |
System.Single | height | Height of the node. |
ShapeType | shapeType | Type of the shape. |
Android.Content.Context | context | Context of the Node. |
Node(Single, Single, Single, Single, Context)
Initializes a new instance of the Node class. Create the Node instance with specified Offset X,Y,width and height.
Declaration
public Node(float offsetX, float offsetY, float width, float height, Context context)
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. |
Android.Content.Context | context | Context of the Node. |
Node(Single, Single, Single, Single, ShapeType, Context)
Initializes a new instance of the Node class. Create the Node instance with specified Offset X,Y,width,height and shape type.
Declaration
public Node(float offsetX, float offsetY, float width, float height, ShapeType shapeType, Context context)
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. |
Android.Content.Context | context | Context of the Node. |
Properties
Annotations
Gets or sets 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 of the node.
Declaration
public Rectangle BoundingRect { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
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 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. |
CustomShape
Gets or sets the custom path to be rendered as node.
Declaration
public Path CustomShape { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Path | Defines custom path. |
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 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 float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | 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 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 float OffsetX { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Defines Node OffsetX. |
OffsetY
Gets or sets the offset Y of the node.
Declaration
public float OffsetY { get; set; }
Property Value
Type | Description |
---|---|
System.Single | 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 of the node.
Declaration
public ViewGroup Template { get; set; }
Property Value
Type | Description |
---|---|
Android.Views.ViewGroup | Defines Node Template. |
Width
Gets or sets the width of the node.
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Defines Node width. |
Methods
UpdateSfGraphics(SfGraphics)
Updates or renders the specified graphics element as node.
Declaration
public void UpdateSfGraphics(SfGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
SfGraphics | graphics | graphics value. |