Class Node
Represents a node/shape in the diagram.
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.dll
Syntax
public class Node : DiagramBaseItem
Constructors
Node()
Initializes a new instance of the Node class.
Declaration
public Node()
Node(Single, Single)
Initializes a new instance of the Node class. Create the Node instance with specified width and height.
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. Create the Node instance with specified width, height and type of shape.
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. Create the Node instance with specified Offset X,Y,width and height.
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. 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)
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. |
Fields
AnnotationsProperty
Represents the bindable property of AnnotationsProperty.
Declaration
public static readonly BindableProperty AnnotationsProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ContentProperty
Represents the bindable property of ContentProperty.
Declaration
public static readonly BindableProperty ContentProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
EnableDragProperty
Represents the bindable property of EnableDragProperty.
Declaration
public static readonly BindableProperty EnableDragProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
EnableResizeProperty
Represents the bindable property of EnableResizeProperty.
Declaration
public static readonly BindableProperty EnableResizeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
EnableRotationProperty
Represents the bindable property of EnableRotationProperty.
Declaration
public static readonly BindableProperty EnableRotationProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
EnableTextEditingProperty
Represents the bindable property of EnableTextEditingProperty.
Declaration
public static readonly BindableProperty EnableTextEditingProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ExcludeFromLayoutProperty
Represents the bindable property of ExcludeFromLayout.
Declaration
public static readonly BindableProperty ExcludeFromLayoutProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
HeightProperty
Represents the bindable property of HeightProperty.
Declaration
public static readonly BindableProperty HeightProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsExpandedProperty
Represents the bindable property of IsExpandedProperty.
Declaration
public static readonly BindableProperty IsExpandedProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsLockedProperty
Represents the bindable property of IsLockedProperty.
Declaration
public static readonly BindableProperty IsLockedProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsVisibleProperty
Represents the bindable property of IsVisible.
Declaration
public static readonly BindableProperty IsVisibleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
OffsetXProperty
Represents the bindable property of OffsetXProperty.
Declaration
public static readonly BindableProperty OffsetXProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
OffsetYProperty
Represents the bindable property of OffsetYProperty.
Declaration
public static readonly BindableProperty OffsetYProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
OpacityProperty
Represents the bindable property of OpacityProperty.
Declaration
public static readonly BindableProperty OpacityProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
PortsProperty
Represents the bindable property of PortsProperty.
Declaration
public static readonly BindableProperty PortsProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
RotationAngleProperty
Represents the bindable property of RotationAngleProperty.
Declaration
public static readonly BindableProperty RotationAngleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShapeTypeProperty
Represents the bindable property of ShapeTypeProperty.
Declaration
public static readonly BindableProperty ShapeTypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SiblingSpaceProperty
Represents the bindable property of SiblingSpace.
Declaration
public static readonly BindableProperty SiblingSpaceProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StyleProperty
Initializes a new instance of the Node class.
Declaration
public static readonly BindableProperty StyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TemplateProperty
Represents the bindable property of TemplateProperty.
Declaration
public static readonly BindableProperty TemplateProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
WidthProperty
Represents the bindable property of WidthProperty.
Declaration
public static readonly BindableProperty WidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
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. |
Children
Gets children.
Declaration
public IEnumerable<Node> Children { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<Node> |
Content
Gets or sets the content of the node.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
EnableDrag
Gets or sets a value indicating whether this Syncfusion.SfDiagram.XForms(Portable).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 Syncfusion.SfDiagram.XForms(Portable).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 Syncfusion.SfDiagram.XForms(Portable).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 Syncfusion.SfDiagram.XForms(Portable).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 float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Defines Node Height. |
InConnectors
Gets inConnectors.
Declaration
public List<Connector> InConnectors { get; }
Property Value
Type |
---|
System.Collections.Generic.List<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 Syncfusion.SfDiagram.XForms(Portable).Node is locked.
Declaration
public bool IsLocked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsVisible
Gets or sets a value indicating whether gets or sets the IsVisible of the node.
Declaration
public bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defines Node IsVisible. |
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. |
Opacity
Gets or sets the opacity. This is a bindable property.
Declaration
public float Opacity { get; set; }
Property Value
Type |
---|
System.Single |
OutConnectors
Gets outConnectors.
Declaration
public List<Connector> OutConnectors { get; }
Property Value
Type |
---|
System.Collections.Generic.List<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. |
Style
Gets or sets the Style for the Node. This is a bindable property.
Declaration
public Style Style { get; set; }
Property Value
Type | Description |
---|---|
Style | The style value. |
Template
Gets or sets the Template for the Node. This is a bindable property.
Declaration
public DataTemplate Template { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.DataTemplate | The DataTemplate value. |
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
OnBindingContextChanged()
Initializes a new instance of the SiblingSpace class.
Declaration
protected override void OnBindingContextChanged()
Overrides
UpdateSfGraphics(SfGraphics)
Updates or renders the specified graphics element as node.
Declaration
public void UpdateSfGraphics(SfGraphics sfgraphics)
Parameters
Type | Name | Description |
---|---|---|
SfGraphics | sfgraphics | Update SfGraphics. |