slop or angle of inclination

What is the code to include slop of a line or closed object? 
The default values are (x, y, width, height), which is horizontal
How can I include either slop of a line or rotation angle? For example, a rectangle or line with 30% rotation angle will be drawn at 30% inclination



3 Replies

NG Naganathan Ganesh Babu Syncfusion Team March 26, 2018 09:32 AM UTC

Hi Allen, 
 
Please confirm us whether your requirement is to set the rotation angle for the Diagram’s shapes/connectors? If so, we suggest you to use Node’s “RotationAngle” property to rotate the diagram’s shape. please refer to the below code example. 
 
Code example: 
 
[VB] 
 
Dim line As New LineConnector(New PointF(100, 100), New PointF(400, 100)) 
line.RotationAngle = 30 
diagram1.Model.AppendChild(line) 
 
If we misunderstood your requirement, please share us more details such as to elaborate your requirement in detail. 
 
Regards, 
 
Naganathan K G 



AL Allen March 26, 2018 01:34 PM UTC

thank you Naganathan!



NG Naganathan Ganesh Babu Syncfusion Team March 27, 2018 07:15 AM UTC

Hi Allen, 
 
Thanks for the update please let us know whether you need any other assistance. 
 
Regards, 
 
Naganathan K G 


Loader.
Up arrow icon