Class GraphNodeBase
Base class for GraphNodes.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public abstract class GraphNodeBase : IGBounds, IGTransform
Constructors
GraphNodeBase(Node)
Initializes a new instance of the GraphNodeBase class.
Declaration
public GraphNodeBase(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | The node. If set null node will mark as fictitious. |
Properties
Added
Gets or sets a value indicating whether node has been already added to typeOrder hashtable in Graph. Internal usage flag.
Declaration
public bool Added { get; set; }
Property Value
Type |
---|
System.Boolean |
Bounds
Gets node bounding rectangle.
Declaration
public RectangleF Bounds { get; }
Property Value
Type |
---|
System.Drawing.RectangleF |
Center
Gets or sets node center point.
Declaration
public PointF Center { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
FullName
Gets the name of node.
Declaration
public string FullName { get; }
Property Value
Type |
---|
System.String |
Height
Gets or sets node height.
Declaration
public float Height { get; set; }
Property Value
Type |
---|
System.Single |
Location
Gets or sets node location point.
Declaration
public PointF Location { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
Node
Gets SymbolBase derived object.
Declaration
public Node Node { get; }
Property Value
Type |
---|
Node |
Size
Gets or sets node size.
Declaration
public SizeF Size { get; set; }
Property Value
Type |
---|
System.Drawing.SizeF |
Width
Gets or sets node width.
Declaration
public float Width { get; set; }
Property Value
Type |
---|
System.Single |
X
Gets or sets location X coordinate.
Declaration
public float X { get; set; }
Property Value
Type |
---|
System.Single |
Y
Gets or sets location Y coordinate.
Declaration
public float Y { get; set; }
Property Value
Type |
---|
System.Single |
Methods
ApplyChanges()
Append bounds and size changes to kept node.
Declaration
public void ApplyChanges()
Rotate(Single)
Rotates the node a specified number of degrees.
Declaration
public void Rotate(float fDegree)
Parameters
Type | Name | Description |
---|---|---|
System.Single | fDegree | Rotation degree. |
RotateAt(PointF, Single)
Rotates the node a specified number of degrees about a given anchor point.
Declaration
public void RotateAt(PointF ptAnchor, float fDegree)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptAnchor | anchor point. |
System.Single | fDegree | rotation degree. |
Translate(Single, Single)
Moves Graph node to a new location.
Declaration
public void Translate(float dx, float dy)
Parameters
Type | Name | Description |
---|---|---|
System.Single | dx | New location X coordinate. |
System.Single | dy | New location Y coordinate. |