Skip to main content

ForceNode Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Represents a node in the force directed graph.

public class ForceNode

Inheritance: object -> ForceNode

Constructors​

NameDescription
ForceNodeNo summary available.

ForceNode Constructor​

public ForceNode()

Properties​

NameDescription
IdGets or sets the unique identifier of the node.
LabelGets or sets the display label shown for the node.
VelocityXGets or sets the X velocity.
VelocityYGets or sets the Y velocity.
XGets or sets the X coordinate.
YGets or sets the Y coordinate.

Id Property​

Gets or sets the unique identifier of the node.

public string Id { get; set; }

Label Property​

Gets or sets the display label shown for the node.

public string Label { get; set; }

VelocityX Property​

Gets or sets the X velocity.

public double VelocityX { get; set; }

VelocityY Property​

Gets or sets the Y velocity.

public double VelocityY { get; set; }

X Property​

Gets or sets the X coordinate.

public double X { get; set; }

Y Property​

Gets or sets the Y coordinate.

public double Y { get; set; }