Vytvoří a přidá 2D text na plochu.
Jmenný prostor:
SGP.XSpaceKnihovna: SGPRTL (v SGPRTL)
Verze: dll
Syntaxe
C# |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public XText2D AddText( string text, Font font, Color color, RectangleF clip, bool relativePosition, 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.
- clip
- Typ: System.Drawing..::.RectangleF
Obdélník označující viditelnou část text.
- relativePosition
- Typ: System..::.Boolean
Určuje, zda je pozice zadána v relativních souřadnicích.
- format
- Typ: DrawTextFormat
Formát textu DrawTextFormat určuje způsob, jak bude text vykreslen.