[]
        
(Showing Draft Content)

C1.WPF.Word.C1WordDocument.DrawString

DrawString Method

DrawString(string, Rect)

Draw text string into this document in next position.

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

The text string of the paragraph.

Rect rc

The drawing rectangle.

DrawString(string, Font, Color, Rect)

Draw text string into this document in next position.

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

The text string of the paragraph.

Font font

The drawing font.

Color clr

The drawing color.

Rect rc

The drawing rectangle.

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

Draw text string into this document in next position.

Declaration
public void DrawString(string text, Font font, Color clr, Rect rc, StringFormat sf)
Parameters
Type Name Description
string text

The text string of the paragraph.

Font font

The drawing font.

Color clr

The drawing color.

Rect rc

The drawing rectangle.

StringFormat sf

The drawing string format.

DrawString(TextBlock, Rect, bool)

Draws a string into the specified rectangle.

Declaration
public void DrawString(TextBlock tb, Rect rc, bool overlapping = false)
Parameters
Type Name Description
TextBlock tb

TextBlock that contains the text and formatting options.

Rect rc

A rectangle that specifies the size and position of the text, in points.

bool overlapping

Is overlapping or no exist TextBox object.