[]
        
(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)
Public Sub DrawString(s As String, x As Double, y As Double)
Parameters
Type Name Description
string s

String to draw.

double x

X-coordinate of string.

double y

Y-coordinate of string.

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)
Public Sub DrawString(s As String, x As Double, y As Double, w As Double, h As Double, Optional horizontal As Byte = 0, Optional vertical As Byte = 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).

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
[Obsolete("Please use DrawString from interface")]
public void DrawString(string s, RectangleF rc, TextAlignType horizontal = TextAlignType.Far, TextAlignType vertical = TextAlignType.Far)
<Obsolete("Please use DrawString from interface")>
Public Sub DrawString(s As String, rc As RectangleF, Optional horizontal As TextAlignType = TextAlignType.Far, Optional vertical As TextAlignType = 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.