Creates a RenderPolygon from a collection of
UnitPoint objects, and renders it on the current page,
at position specified by the points' coordinates.
Namespace:
C1.C1PreviewIf fillColor specifies a non-empty and non-transparent color, the polygon is closed, otherwise it is open.
Assembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public void RenderDirectPolygon( IEnumerable points, Color lineColor, Unit lineThickness, Color fillColor ) |
Visual Basic |
---|
Public Sub RenderDirectPolygon ( _ points As IEnumerable, _ lineColor As Color, _ lineThickness As Unit, _ fillColor As Color _ ) |
Parameters
- points
- Type: System.Collections..::..IEnumerable
The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
- lineColor
- Type: System.Drawing..::..Color
The line color.
- lineThickness
- Type: C1.C1Preview..::..Unit
The line thickness.
- fillColor
- Type: System.Drawing..::..Color
The fill color (if empty or transparent, the polygon is closed, otherwise it is open).
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
C1PrintDocumentCreateRenderPolygon(IEnumerable, Boolean)