Makes the shape node big enough to display its text without clipping.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
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 Rect(shapeNode.Bounds.Left, shapeNode.Bounds.Top, 10, 10); shapeNode.PolygonalTextLayout = true; |
Visual Basic Copy Code |
---|
r = New Rect(shapeNode.Bounds.Left, shapeNode.Bounds.Top, 10, 10) shapeNode.PolygonalTextLayout = True |
WpfDiagram Programmer's Guide | © 2024 MindFusion |