PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectPolygon Method / RenderDirectPolygon(IEnumerable,Boolean,Style) Method
The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
A value indicating whether the polygon should be closed (i.e. the last point connected to the first one).
The C1PrintDocument.Style to use.

In This Topic
    RenderDirectPolygon(IEnumerable,Boolean,Style) Method
    In This Topic
    Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectPolygon( _
       ByVal points As IEnumerable, _
       ByVal closed As Boolean, _
       ByVal style As Style _
    ) 
    public void RenderDirectPolygon( 
       IEnumerable points,
       bool closed,
       Style style
    )

    Parameters

    points
    The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
    closed
    A value indicating whether the polygon should be closed (i.e. the last point connected to the first one).
    style
    The C1PrintDocument.Style to use.
    Remarks

    This method can only be used between calls to C1PrintDocument.StartDoc and C1PrintDocument.EndDoc methods on the current document. For details, see C1PrintDocument.RenderDirect.

    See Also