[]
        
(Showing Draft Content)

C1.WPF.Document.Util.C1HtmlGraphics.DrawText

DrawText Method

DrawText(Point, string, string, float, C1FontWeight, C1FontStretch, bool, C1TextDecoration, Color, float[], byte[], bool, int, double)

Simple draw text run.

Declaration
protected override void DrawText(Point pt, string text, string fontName, float fontSize, C1FontWeight weight, C1FontStretch stretch, bool italic, C1TextDecoration decor, Color color, float[] advances, byte[] panose, bool vertical, int bidiLevel, double offset)
Parameters
Type Name Description
Point pt

The start point for draw text.

string text

The text run.

string fontName

The font name as string.

float fontSize

The font size in points.

C1FontWeight weight

The font weight, see C1.WPF.Document.C1FontWeight.

C1FontStretch stretch

The font weight, see C1FontStretch.

bool italic

The italic flag.

C1TextDecoration decor

The text docoration, see C1.WPF.Document.C1TextDecoration.

Color color

The text (foreground) color.

float[] advances

The advaces array, widths of each glyph in points.

byte[] panose

The font panose (font identifier).

bool vertical

The vertical texts with hieroglyphs flag.

int bidiLevel

The right to left (bi-di) text level (0 - normal, 1 - rtl, 2 - inside rtl).

double offset

Text right bound offset, 0 by default

Overrides