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, Color backColor, float x, float y, bool relativePosition, int width, int height, DrawTextFormat format ) |
Parametry
- text
- Typ: System..::.String
Zobrazovaný text.
- font
- Typ: System.Drawing..::.Font
Typ písma Font.
- color
- Typ: System.Drawing..::.Color
Barva textu.
- backColor
- Typ: System.Drawing..::.Color
Barva pozadí 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.
- width
- Typ: System..::.Int32
Šířka textu.
- height
- Typ: System..::.Int32
Výška textu.
- format
- Typ: DrawTextFormat
Formát textu DrawTextFormat určuje způsob, jak bude text vykreslen.