PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectPolygon Method / RenderDirectPolygon(IEnumerable,Color,Unit,Color) Method
The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
The line color.
The line thickness.
The fill color (if empty or transparent, the polygon is closed, otherwise it is open).

In This Topic
    RenderDirectPolygon(IEnumerable,Color,Unit,Color) 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 fillColor specifies a non-empty and non-transparent color, the polygon is closed, otherwise it is open.

    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectPolygon( _
       ByVal points As IEnumerable, _
       ByVal lineColor As Color, _
       ByVal lineThickness As Unit, _
       ByVal fillColor As Color _
    ) 
    public void RenderDirectPolygon( 
       IEnumerable points,
       Color lineColor,
       Unit lineThickness,
       Color fillColor
    )

    Parameters

    points
    The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).
    lineColor
    The line color.
    lineThickness
    The line thickness.
    fillColor
    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