x4Trace Documentation v1.0
Loading...
Searching...
No Matches
IGraphics.Drawing2D.GFXTools Class Reference

Represents a tool class for drawing. More...

Static Public Member Functions

static int GetTextHeight (string text, GInterface.IFont font, int width)
 Get text height.
 
static ISize GetTextSize (string text, GInterface.IFont font, int width)
 Get text size.
 
static ISize GetTextSize2 (string text, GInterface.IFont font, int width, int height)
 Get text size.
 

Properties

static bool IsInitialized [get]
 The tools ins initialized.
 

Events

static GetTextHeightHandler GetTextHeightHandler
 Get text height event.
 
static GetTextSizeHandler GetTextSizeHandler
 Get text size event.
 
static GetTextSize2Handler GetTextSize2Handler
 Get text size event.
 

Detailed Description

Represents a tool class for drawing.

Member Function Documentation

◆ GetTextHeight()

static int IGraphics.Drawing2D.GFXTools.GetTextHeight ( string text,
GInterface.IFont font,
int width )
static

Get text height.

Parameters
textText.
fontFont of text.
widthMaximum width of text.
Returns
Result of height.

◆ GetTextSize()

static ISize IGraphics.Drawing2D.GFXTools.GetTextSize ( string text,
GInterface.IFont font,
int width )
static

Get text size.

Parameters
textText.
fontFont of text.
widthMaximum width of text.
Returns
Result of size.

◆ GetTextSize2()

static ISize IGraphics.Drawing2D.GFXTools.GetTextSize2 ( string text,
GInterface.IFont font,
int width,
int height )
static

Get text size.

Parameters
textText.
fontFont of text.
widthMaximum width of text.
heightMaximum heigth of text.
Returns
Result of size.

The documentation for this class was generated from the following file: