Makes the shape node big enough to display its text without clipping.
Namespace: MindFusion.Diagramming
Package: 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) |
NetDiagram Programmer's Guide | © 2023 MindFusion |