hi,
we are using the Syncfusion(6.4.0.15) Diagram Control.
We are create the Node dynamically. And required to give the text into the Node
So we are use the following code:
// Create the array of the node
Syncfusion.Windows.Forms.Diagram.LabelCollection LableColl = new Syncfusion.Windows.Forms.Diagram.LabelCollection();
// Create the node
SymbolRectangle symbolRectangle = nd as SymbolRectangle;
// Create the 3 labels
LableColl.Add(new Syncfusion.Windows.Forms.Diagram.Label());
LableColl.Add(new Syncfusion.Windows.Forms.Diagram.Label());
LableColl.Add(new Syncfusion.Windows.Forms.Diagram.Label());
// Add this three labels to Symbol
symbolRectangle.Labels.AddRange(LableColl);
// After that assign the text to Label
// Now fixed the position of labels to Node
// we want add label[0] into Node
// label[1] at the Top of Node
// label[2] at the bottum of node
// Code for label[1] at the Top of Node
LableColl[1].Position = Position.Custom;
LableColl[1].OffsetX = (symbolRectangle.Size.Width / 2);
LableColl[1].OffsetY = (symbolRectangle.Size.Height + 15);
// Code for label[2] at the bottum of Node
LableColl[2].Position = Position.Custom;
LableColl[2].OffsetX = (symbolRectangle.Size.Width / 2);
LableColl[2].OffsetY = (symbolRectangle.Size.Height - 60);
Problem :-
1) Bottom Name should always come at bottom when we increase the height of Node at run time.
(Required the Event of Node_ Size Change)
2) When the middle text length is greater than node width then this label should be multiline.
More details See Attachment.
Node_Issues_c5eec2a1.zip