Vytvoří a přidá 2D text na plochu.
Jmenný prostor:
SGP.XSpaceKnihovna: SGPRTL (v SGPRTL)
Verze: dll
Syntaxe
C# |
---|
public XText2D AddText( string text, Font font, Color color, float x, float y, bool relativePosition ) |
Parametry
- text
- Typ: System..::.String
Zobrazovaný text.
- font
- Typ: System.Drawing..::.Font
Typ písma Font.
- color
- Typ: System.Drawing..::.Color
Barva textu.
- x
- Typ: System..::.Single
Souřadnice X textu.
- y
- Typ: System..::.Single
Souřadnice Y textu.
- relativePosition
- Typ: System..::.Boolean
Určuje, zda je pozice zadána v relativních souřadnicích.