[]
        
(Showing Draft Content)

C1.Win.Document.Util.C1DXExportGraphics.DrawText

DrawText Method

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

Simple draw text run.

Declaration
protected virtual 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)
Protected Overridable Sub DrawText(pt As Point, text As String, fontName As String, fontSize As Single, weight As C1FontWeight, stretch As C1FontStretch, italic As Boolean, decor As C1TextDecoration, color As Color, advances As Single(), panose As Byte(), vertical As Boolean, bidiLevel As Integer, offset As Double)
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.Document.C1FontWeight.

C1FontStretch stretch

The font weight, see C1.Document.C1FontStretch.

bool italic

The italic flag.

C1TextDecoration decor

The text docoration, see C1.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