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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public void RenderDirectLine(
	Unit fromX,
	Unit fromY,
	Unit toX,
	Unit toY,
	LineDef line
)
Visual Basic
Public Sub RenderDirectLine ( _
	fromX As Unit, _
	fromY As Unit, _
	toX As Unit, _
	toY As Unit, _
	line As LineDef _
)

Parameters

fromX
Type: C1.C1Preview..::..Unit
The X coordinate of the first point that the line connects.
fromY
Type: C1.C1Preview..::..Unit
The Y coordinate of the first point that the line connects.
toX
Type: C1.C1Preview..::..Unit
The X coordinate of the second point that the line connects.
toY
Type: C1.C1Preview..::..Unit
The Y coordinate of the second point that the line connects.
line
Type: C1.C1Preview..::..LineDef
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