Measures the specified formatted test when drawn with the specified Font within the specified region.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public static Size MeasureFormattedText( string text, Font font, int width, int height, bool clipping, int tabSize )
Type: System.String
A formatted text you want to measure.Type: Aurigma.GraphicsMill.Drawing.Font
A Font that defines the text format.Type: System.Int32
The width of the drawn text.Type: System.Int32
The height of the drawn text.Type: System.Boolean
true
if the string is clipped when it does not fit the bounding rectangle; otherwise, false
.Type: System.Int32
The number of whitespaces to replace one tabulation character in the text.Width and height parameters specify the desired rectangle you want to display the text inside. The return value is the actual dimensions of the rectangle the text will occupy when displaying.
To get a valid text size, parameters values passed to this method should be identical to the respective parameters of the DrawFormattedText(String, Font, SolidBrush, Int32, Int32, Int32, Int32, Boolean, Int32) method.