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,
	Color lineColor,
	Unit lineThickness
)
Visual Basic
Public Sub RenderDirectLine ( _
	fromX As Unit, _
	fromY As Unit, _
	toX As Unit, _
	toY As Unit, _
	lineColor As Color, _
	lineThickness As Unit _
)

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.
lineColor
Type: System.Drawing..::..Color
The line color.
lineThickness
Type: C1.C1Preview..::..Unit
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