Computes needed Rectangular area to draw given text
Namespace:
Hyleos.Common.GeometryAssembly: Hyleos.Common (in Hyleos.Common.dll) Version: 1.0.3.2 (1.0.3.2)
Syntax
| C# |
|---|
public static RectangleF GetTextRect( Graphics g, Font font, PointF pt, string text ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function GetTextRect ( _ g As Graphics, _ font As Font, _ pt As PointF, _ text As String _ ) As RectangleF |
| Visual C++ |
|---|
public: static RectangleF GetTextRect( Graphics^ g, Font^ font, PointF pt, String^ text ) |
Parameters
- g
- Type: System.Drawing..::.Graphics
Graphic object
- font
- Type: System.Drawing..::.Font
[Missing <param name="font"/> documentation for "M:Hyleos.Common.Geometry.Geometry.GetTextRect(System.Drawing.Graphics,System.Drawing.Font,System.Drawing.PointF,System.String)"]
- pt
- Type: System.Drawing..::.PointF
Upper and Left point coordinates
- text
- Type: System..::.String
Text to draw