Hi Syncfusion,
Can you advise on the correct way to set the size of a node AFTER it's already been created (and given an initial size)? I've managed to use the below code to do it but i get strange positioning of highlight boxes when adding links once it's been resized.
Here's the code i was using to resize the nodes:
// create node
var n = new Rectangle(10,10,265,100,MeasureUnits.Pixel);
// to shrink
n.SetSize(new SizeF(265,100), new SizeF(265,60)); // old size followed by new size
n.CentralPort.OffSetX = 265/2;
n.CentralPort.OffsetY = 60/2;
// to expand
n.SetSize(new SizeF(265,60), new SizeF(265,100)); // new size followed by old size
n.CentralPort.OffSetX = 265/2;
n.CentralPort.OffsetY = 100/2;
Can somebody advise what I should be doing instead?
Thank you,
John
AddLinkProblem_f731de5f.zip