SvgGraphicsDrawString Method
Draws the specified text string at the specified location with the specified
ColorBrush
and
FontInfo objects using the formatting attributes of the specified
StringOptions.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
public void DrawString(
string text,
FontInfo font,
ColorBrush brush,
float x,
float y,
float width,
StringOptions format
)
Public Sub DrawString (
text As String,
font As FontInfo,
brush As ColorBrush,
x As Single,
y As Single,
width As Single,
format As StringOptions
)
public:
virtual void DrawString(
String^ text,
FontInfo^ font,
ColorBrush^ brush,
float x,
float y,
float width,
StringOptions^ format
) sealed
abstract DrawString :
text : string *
font : FontInfo *
brush : ColorBrush *
x : float32 *
y : float32 *
width : float32 *
format : StringOptions -> unit
override DrawString :
text : string *
font : FontInfo *
brush : ColorBrush *
x : float32 *
y : float32 *
width : float32 *
format : StringOptions -> unit
- text String
- String to draw.
- font FontInfo
- FontInfo that defines the text format of the string.
- brush ColorBrush
- ColorBrush that determines the color and texture of the drawn text.
- x Single
- Specifies the left coordinate of the drawn text.
- y Single
- Specifies the upper coordinate of the drawn text.
- width Single
- Maximum width available to draw.
- format StringOptions
- StringOptions that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.
IGraphicsDrawString(String, FontInfo, ColorBrush, Single, Single, Single, StringOptions)