I'm already setting the shape node's text area in that fasion. The problem is that the initial size definition isn't always sufficient. So, if the text is longer than the given region it doesn't display then entire text.
So, in my code I create a custom shape node, that consumes a custom defined shape. For that shape I define the text area as follows.
_s.TextArea = New ElementTemplate() {New LineTemplate(0, 70, 100, 70), _
New LineTemplate(100, 70, 100, 100), _
New LineTemplate(100, 100, 0, 100), _
New LineTemplate(0, 100, 0, 70)}
Then in the ShapeNode code definitions:
ShapeNode.ResizeToFitText(FitSize.KeepWidth)
The overall height of the node doesn't seem to change with respect to the amount of text defined for that particular shape node.
How would I change the height of this region dynamically?