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; otherwise, false.
The following sample resizes a node to fit its text, using 1:1 width to height ratio.
C# Copy Code |
---|
r = new RectangleF(shapeNode.Bounds.Left, shapeNode.Bounds.Top, 10, 10); |
Visual Basic Copy Code |
---|
r = New RectangleF(shapeNode.Bounds.Left, shapeNode.Bounds.Top, 10, 10) |
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |