Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectPolygon Method / RenderDirectPolygon(IEnumerable,LineDef,Brush) Method
The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
The LineDef to draw the polygon with.
The fill color (if null, the polygon is open, otherwise it is closed).

In This Topic
    RenderDirectPolygon(IEnumerable,LineDef,Brush) 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.

    If fillBrush is null, the polygon is open, otherwise it is closed.

    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectPolygon( _
       ByVal points As IEnumerable, _
       ByVal line As LineDef, _
       ByVal fillBrush As Brush _
    ) 
    public void RenderDirectPolygon( 
       IEnumerable points,
       LineDef line,
       Brush fillBrush
    )

    Parameters

    points
    The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
    line
    The LineDef to draw the polygon with.
    fillBrush
    The fill color (if null, the polygon is open, otherwise it is closed).
    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