[]
        
(Showing Draft Content)

C1.Util.SvgRendering.DrawString

DrawString Method

DrawString(string, double, double)

Draw string at specified position.

Declaration
public void DrawString(string s, double x, double y)
Parameters
Type Name Description
string s

String to draw.

double x

X-coordinate of string.

double y

Y-coordinate of string.

Implements

DrawString(string, double, double, double, double, byte, byte)

Draw string at specified area with word wrap.

Declaration
public void DrawString(string s, double x, double y, double w, double h, byte horizontal = 0, byte vertical = 0)
Parameters
Type Name Description
string s

String to draw.

double x

X-coordinate of string.

double y

Y-coordinate of string.

double w

Rendering width.

double h

Rendering height.

byte horizontal

Horizontal alignment (see alignment type).

byte vertical

Vertical alignment (see alignment type).

Implements
Remarks

The alignment types: 00 - near, left or top alignment (by default) 01 - center or middle alignment 02 - far, right or bottom alignment 03 - justify or stretch alignment

DrawString(string, RectangleF, TextAlignType, TextAlignType)

Draw string at specified area with word wrap.

Declaration
public void DrawString(string s, RectangleF rc, TextAlignType horizontal = TextAlignType.Far, TextAlignType vertical = TextAlignType.Far)
Parameters
Type Name Description
string s

String to draw.

RectangleF rc

Rectangle for text drawing in pixels.

TextAlignType horizontal

Horizontal text alignment.

TextAlignType vertical

Vertical text alignment.