[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.RenderDirectLine

RenderDirectLine Method

RenderDirectLine(Unit, Unit, Unit, Unit, LineDef)

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

Declaration
public void RenderDirectLine(Unit fromX, Unit fromY, Unit toX, Unit toY, LineDef line)
Public Sub RenderDirectLine(fromX As Unit, fromY As Unit, toX As Unit, toY As Unit, line As LineDef)
Parameters
Type Name Description
Unit fromX

The X coordinate of the first point that the line connects.

Unit fromY

The Y coordinate of the first point that the line connects.

Unit toX

The X coordinate of the second point that the line connects.

Unit toY

The Y coordinate of the second point that the line connects.

LineDef line

The LineDef to draw the line with.

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

RenderDirectLine(Unit, Unit, Unit, Unit, Color, Unit)

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

Declaration
public void RenderDirectLine(Unit fromX, Unit fromY, Unit toX, Unit toY, Color lineColor, Unit lineThickness)
Public Sub RenderDirectLine(fromX As Unit, fromY As Unit, toX As Unit, toY As Unit, lineColor As Color, lineThickness As Unit)
Parameters
Type Name Description
Unit fromX

The X coordinate of the first point that the line connects.

Unit fromY

The Y coordinate of the first point that the line connects.

Unit toX

The X coordinate of the second point that the line connects.

Unit toY

The Y coordinate of the second point that the line connects.

Color lineColor

The line color.

Unit lineThickness

The line thickness.

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