MindFusion.Wpf Pack Programmer's Guide
Diagram.MeasureString Method
See Also
 





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

 Syntax

C#  Copy Code

public Size MeasureString (
    string text,
    ITextAttributes textAttributes,
    int maxWidth
)

Visual Basic  Copy Code

Public Function MeasureString( _
    text As String, _
    textAttributes As ITextAttributes, _
    maxWidth As Integer _
) As Size

 Parameters

text

The string to measure.

textAttributes

A TextAttributes instance that specifies the text appearance.

maxWidth

The maximum width of the string.

 Return Value

This method returns a Size structure that represents the size of the string text when drawn with the font parameter and the stringFormat parameter.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming.Wpf Namespace