[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.RenderDirectText

RenderDirectText Method

RenderDirectText(Unit, Unit, string, object, object, Style)

Adds a text to the Body of the current document at a specific position on the current page, and resolves it.

Declaration
public void RenderDirectText(Unit x, Unit y, string text, object width, object height, Style style)
Parameters
Type Name Description
Unit x

The horizontal (X) coordinate at which to render the image (cannot be auto).

Unit y

The vertical (Y) coordinate at which to render the image (cannot be auto).

string text

The string to render.

object width

The width of the text area (if null, auto is used).

object height

The height of the text area (if null, auto is used).

Style style

The Style to use, or null.

Remarks

This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderDirect(Unit, Unit, RenderObject, object, object).

See Also

RenderDirectText(Unit, Unit, string, object, Font, Color, AlignHorzEnum)

Adds a text to the Body of the current document at a specific position on the current page, with auto height, and resolves it.

Declaration
public void RenderDirectText(Unit x, Unit y, string text, object width, Font font, Color textColor, AlignHorzEnum horzAlign)
Parameters
Type Name Description
Unit x

The horizontal (X) coordinate at which to render the image (cannot be auto).

Unit y

The vertical (Y) coordinate at which to render the image (cannot be auto).

string text

The string to render.

object width

The width of the text area (if null, auto is used).

Font font

The font to use.

Color textColor

The text color.

AlignHorzEnum horzAlign

The horizontal text alignment.

Remarks

This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderDirect(Unit, Unit, RenderObject, object, object).

See Also