Hi,
You could set the shapes text area to a very large rectangle starting from Y = 100:
foreach (Shape shape in Shape.Shapes)
{
shape.TextArea = new ElementTemplate[]
{
new LineTemplate(-1000, 100, 1100, 100),
new LineTemplate(1100, 100, 1100, 1000),
new LineTemplate(1100, 1000, -1000, 1000),
new LineTemplate(-1000, 1000, -1000, 100)
};
}
Now if you set TextFormat to be top-aligned and horizontally-centered, the nodes should be able to display very long texts without trimming.
Some other options are:
- inherit from ShapeNode and override its Draw and GetRepaintRect methods to draw text below the node's shape.
- create a separate ShapeNode to display the label, place it below the main node, and call labelNode.AttachTo(mainNode, AttachToNode.BottomLeft)
I hope that helps,
Stoyan