Creates and adds the 2D text to the surface.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public XText2D AddText( string text, Font font, Color color, Rectangle clip, 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..::.Rectangle
The clipping rectangle for the visible part of the text.
- format
- Type: DrawTextFormat
The DrawTextFormat text format defines way of displaying the text.