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, float x, float y, string text ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function GetTextRect ( _ g As Graphics, _ font As Font, _ x As Single, _ y As Single, _ text As String _ ) As RectangleF |
| Visual C++ |
|---|
public: static RectangleF GetTextRect( Graphics^ g, Font^ font, float x, float y, 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.Single,System.Single,System.String)"]
- x
- Type: System..::.Single
Left X coordinates
- y
- Type: System..::.Single
Top Y coordinates
- text
- Type: System..::.String
Text to draw