Makes the shape node big enough to display its text without clipping.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public bool ResizeToFitText ( |
Visual Basic Copy Code |
---|
Public Function ResizeToFitText( _ |
true if the node is resized successfully, or false otherwise.
The following sample resizes a node to fit its text, using 1:1 width to height ratio.
C# Copy Code |
---|
var r = new Rect(shapeNode.Bounds.Left, shapeNode.Bounds.Top, 10, 10); |
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |