Nakreslí řetězec na Baltíkovu plochu.
Jmenný prostor:
SGP.Baltie2DKnihovna: SGPRTL (v SGPRTL)
Verze: dll
Syntaxe
C# |
---|
public void DrawString( string value, Font font, Brush brush, int x, int y, int w, int h, StringFormat stringFormat ) |
Parametry
- value
- Typ: System..::.String
Řetězec, který má být nakreslen.
- font
- Typ: System.Drawing..::.Font
Typ písma Font, kterým bude řetězec nakreslen.
- brush
- Typ: System.Drawing..::.Brush
Štětec Brush, kterým bude řetězec nakreslen.
- x
- Typ: System..::.Int32
Souřadnice X levého horního rohu řetězce.
- y
- Typ: System..::.Int32
Souřadnice Y levého horního rohu řetězce.
- w
- Typ: System..::.Int32
Šířka oblasti, do které má být řetězec nakreslen.
- h
- Typ: System..::.Int32
Výška oblasti, do které má být řetězec nakreslen.
- stringFormat
- Typ: System.Drawing..::.StringFormat
Formát řetězce StringFormat.
Výjimky
Výjimka | Podmínka |
---|---|
System..::.ArgumentNullException | brush je nullNothingnullptrnulová reference (Nothing v Visual Basic). |
System..::.ArgumentNullException | font je nullNothingnullptrnulová reference (Nothing v Visual Basic). |