Measures the specified text when drawn with the specified font in an area with the specified width taking into consideration the current affine transform of the diagram.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public Size MeasureString ( |
Visual Basic Copy Code |
---|
Public Function MeasureString( _ |
The string to measure.
A TextAttributes instance that specifies the text appearance.
The maximum width of the string.
This method returns a Size structure that represents the size of the string text when drawn with the font parameter and the stringFormat parameter.
WpfDiagram Programmer's Guide | © 2024 MindFusion |