[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.RenderDirect

RenderDirect Method

RenderDirect(Unit, Unit, RenderObject)

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

This method can only be used if IsStartEndDocMode is true.

Declaration
public bool RenderDirect(Unit x, Unit y, RenderObject ro)
Parameters
Type Name Description
Unit x

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

Unit y

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

RenderObject ro

The RenderObject object to render.

Returns
Type Description
bool

true if no warnings were generated by this call, false otherwise.

Remarks

The specified coordinates (x and y) are assigned to the X and Y properties of the passed object.

As all other RenderBlock..., RenderDirect... and RenderInline... methods, This method can only be used between calls to StartDoc() and EndDoc() on the current document, i.e. when the IsStartEndDocMode property is true.

Do not use this method if the document is generated with a call to the Generate() method.

See Also

RenderDirect(Unit, Unit, RenderObject, object, object)

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

This method can only be used if IsStartEndDocMode is true.

Declaration
public bool RenderDirect(Unit x, Unit y, RenderObject ro, object width, object height)
Parameters
Type Name Description
Unit x

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

Unit y

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

RenderObject ro

The RenderObject object to render.

object width

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

object height

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

Returns
Type Description
bool

true if no warnings were generated by this call, false otherwise.

Remarks

The specified coordinates (x and y) are assigned to the X and Y properties of the passed object.

The specified dimensions (width and height) are assigned to the Width and Height properties of the passed object.

As all other RenderBlock..., RenderDirect... and RenderInline... methods, This method can only be used between calls to StartDoc() and EndDoc() on the current document, i.e. when the IsStartEndDocMode property is true.

Do not use this method if the document is generated with a call to the Generate() method.

See Also