Hi ,
I am using a diagram and add richtextnodes
I allow the user to turn them (through the context menu)
I save the X,Y,Width,Height and rotation to a database and when the user opens a specific diagram it loads the nodes.
All the nodes that have been rotated have got a different position from the one that user saved
How I save the node
NodeX = Convert.ToInt32(rtxtNode.BoundingRectangle.Location.X);
NodeY = Convert.ToInt32(rtxtNode.BoundingRectangle.Location.Y);
NodeWidth = Convert.ToInt32(rtxtNode.Size.Width);
NodeHeight = Convert.ToInt32(rtxtNode.Size.Height);
NodeRotation = Convert.ToInt32(rtxtNode.RotationAngle);
How i Load the node
this.diagram1.BeginUpdate();
RichTextNode richTextNode = new RichTextNode("",
new RectangleF(NodeX,
NodeY,
NodeWidth,
NodeHeight));
richTextNode.RotationAngle = Properties.Settings.Default.Rotation;
diagram1.Model.AppendChild(richTextNode);
this.diagram1.EndUpdate();
In the attached folder you can find a sample and a video how to reproduce the problem
Attachment:
Projects_cf8bb82a.7z