Creates and adds the 2D text to the surface.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XText2D AddText(
	string text,
	Font font,
	Color color,
	Color backColor,
	float x,
	float y,
	bool relativePosition
)

Parameters

text
Type: System..::.String
Displayed text.
font
Type: System.Drawing..::.Font
The Font font type.
color
Type: System.Drawing..::.Color
Text color.
backColor
Type: System.Drawing..::.Color
Text background color.
x
Type: System..::.Single
Text X coordinates.
y
Type: System..::.Single
Text Y coordinates.
relativePosition
Type: System..::.Boolean
Whether the coordinates are relative.

Return Value

Returns newly created XText2D 2D text.

See Also