Creates and adds the 2D text to the surface.

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public XText2D AddText(
	string text,
	Font font,
	Color color,
	RectangleF clip,
	bool relativePosition,
	DrawTextFormat format
)

Parameters

text
Type: System..::.String
Displayed text.
font
Type: Font
The DirectX surface Font font type.
color
Type: System.Drawing..::.Color
Text color.
clip
Type: System.Drawing..::.RectangleF
The clipping rectangle for the visible part of the text.
relativePosition
Type: System..::.Boolean
Whether the coordinates are relative.
format
Type: DrawTextFormat
The DrawTextFormat text format defines way of displaying the text.

Return Value

Returns newly created XText2D 2D text.

See Also