- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Brush Class
- BrushType Enumeration
- Charset Enumeration
- Font Class
- Font Members
- Font Constructor
- Font Fields
- Font Methods
- Font Properties
- GdiGraphics Class
- GdiGraphicsMode Enumeration
- HatchBrush Class
- HatchStyle Enumeration
- HorizontalAlignment Enumeration
- LineCap Enumeration
- Pen Class
- SolidBrush Class
- TextTrimmingMode Enumeration
- VerticalAlignment Enumeration
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
This documentation is for the old version. Go to the latest Graphics Mill docs
Font.MeasureFormattedText Method (String, SizeF, Boolean, Int32)
Gets extent of the given formatted text (both width and height) when it will be drawn with the GdiGraphics.DrawFormattedText method.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Function MeasureFormattedText ( _
text As String, _
size As SizeF, _
clipping As Boolean, _
tabSize As Integer _
) As SizeF
Parameters
- text
-
Type: System.String
Multiline formatted text you want to measure.
- size
-
Type: System.Drawing.SizeF
Width and height of the destination rectangle.
- clipping
-
Type: System.Boolean
Value specifying whether to take into account the destination rectangle. If this value is false the whole text is processed, otherwise only the part which fits the destination rectangle will be measured.
- tabSize
-
Type: System.Int32
Value which specifies the number of whitespaces to replace one tabulation character in the text.
Return Value
Dimensions of the rectangle occupied with formatted text when it will be drawn.Remarks
Size parameter specifies 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 GdiGraphics.DrawFormattedText method.
All the coordinates are measured in units specified with Unit property.
See Also
Reference
- Font Class
- MeasureFormattedText Overload
- Aurigma.GraphicsMill.Drawing Namespace
- GdiGraphics.DrawFormattedText()