Makes the shape node big enough to display its text without clipping.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public bool ResizeToFitText ( |
Visual Basic
Copy Code
|
|---|
Public Function ResizeToFitText( _ |
true if the node is resized successfully, or false otherwise.
ExampleThe 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); |
See Also