[]
        
(Showing Draft Content)

C1.Word.C1WordDocument.DrawString

DrawString Method

DrawString(string, RectangleF)

Draw text string into this document in next position.

Declaration
public void DrawString(string text, RectangleF rc)
Parameters
Type Name Description
string text

The text string of the paragraph.

RectangleF rc

The drawing rectangle.

DrawString(string, Font, Color, RectangleF)

Draw text string into this document in next position.

Declaration
public int DrawString(string text, Font font, Color clr, RectangleF rc)
Parameters
Type Name Description
string text

The text string of the paragraph.

Font font

The drawing font.

Color clr

The drawing color.

RectangleF rc

The drawing rectangle.

Returns
Type Description
int

The index of first character that was not printed because it did not fit in the specified rectangle.

Implements

DrawString(string, Font, Color, RectangleF, StringFormat)

Draw text string into this document in next position.

Declaration
public int DrawString(string text, Font font, Color color, RectangleF rc, StringFormat sf)
Parameters
Type Name Description
string text

The text string of the paragraph.

Font font

Font object that defines the appearance and size of the drawn text.

Color color

The object that defines the color of the drawn text.

RectangleF rc

The drawing rectangle.

StringFormat sf

The drawing string format.

Returns
Type Description
int

The index of first character that was not printed because it did not fit in the specified rectangle.

Implements

DrawString(string, Font, Color, PointF)

Draws the specified text string at the specified point with the specified Color and Font objects.

Declaration
public int DrawString(string text, Font font, Color color, PointF pt)
Parameters
Type Name Description
string text

String to draw.

Font font

Font object that defines the appearance and size of the drawn text.

Color color

The object that defines the color of the drawn text.

PointF pt

The point structure that specifies the location of the drawn text, in points from the top left corner of the page.

Returns
Type Description
int

The index of first character that was not printed because it did not fit in the specified rectangle.

Implements