Class NodePivotPoint
It represents the actual control point for the nodes. In this respect, the node can be rotated.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class NodePivotPoint : SfDiagramBase
Remarks
Rotation of the node is controlled by using the pivot property. These values are range from 0 to 1. The default value for the node’s pivot point is (0.5,0.5), which means the center of the node.
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code{
public ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>() { };
protected override void OnInitialized()
{
// A node is created and stored in the node array.
DiagramNode Node = new DiagramNode()
{
// Position of the node
OffsetX = 250,
OffsetY = 250,
// Size of the node
Width = 100,
Height = 100,
Pivot = new NodePivotPoint { X = 0, Y = 0 },
Style = new NodeShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white" },
};
NodeCollection.Add(Node);
}
}
Constructors
NodePivotPoint()
It represents the actual control point for the nodes. In this respect, the node can be rotated.
Declaration
public NodePivotPoint()
Properties
X
Gets or sets the actual control point to the horizontal in direction.
Declaration
public Nullable<double> X { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
Y
Gets or sets the actual control point to the vertical in direction.
Declaration
public Nullable<double> Y { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |