[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.RenderDirectPolygon

RenderDirectPolygon Method

RenderDirectPolygon(IEnumerable, bool, Style)

Creates a RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.

Declaration
public void RenderDirectPolygon(IEnumerable points, bool closed, Style style)
Parameters
Type Name Description
IEnumerable points

The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).

bool closed

A value indicating whether the polygon should be closed (i.e. the last point connected to the first one).

Style style

The Style to use.

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
C1.C1Preview.C1PrintDocument.CreateRenderPolygon(System.Collections.IEnumerable,System.Boolean)

RenderDirectPolygon(IEnumerable, LineDef, Color)

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.

Declaration
public void RenderDirectPolygon(IEnumerable points, LineDef line, Color fillColor)
Parameters
Type Name Description
IEnumerable points

The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).

LineDef line

The LineDef to draw the polygon with.

Color 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
C1.C1Preview.C1PrintDocument.CreateRenderPolygon(System.Collections.IEnumerable,System.Boolean)

RenderDirectPolygon(IEnumerable, LineDef, Brush)

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.

Declaration
public void RenderDirectPolygon(IEnumerable points, LineDef line, Brush fillBrush)
Parameters
Type Name Description
IEnumerable points

The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).

LineDef line

The LineDef to draw the polygon with.

Brush 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
C1.C1Preview.C1PrintDocument.CreateRenderPolygon(System.Collections.IEnumerable,System.Boolean)

RenderDirectPolygon(IEnumerable, LineDef)

Creates an open RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.

Declaration
public void RenderDirectPolygon(IEnumerable points, LineDef line)
Parameters
Type Name Description
IEnumerable points

The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).

LineDef line

The LineDef to draw the polygon with.

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
C1.C1Preview.C1PrintDocument.CreateRenderPolygon(System.Collections.IEnumerable,System.Boolean)

RenderDirectPolygon(IEnumerable, Color, Unit, Color)

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.

Declaration
public void RenderDirectPolygon(IEnumerable points, Color lineColor, Unit lineThickness, Color fillColor)
Parameters
Type Name Description
IEnumerable points

The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).

Color lineColor

The line color.

Unit lineThickness

The line thickness.

Color 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
C1.C1Preview.C1PrintDocument.CreateRenderPolygon(System.Collections.IEnumerable,System.Boolean)

RenderDirectPolygon(IEnumerable, Color, Unit)

Creates an open RenderPolygon from a collection of UnitPoint objects, and renders it on the current page, at position specified by the points' coordinates.

Declaration
public void RenderDirectPolygon(IEnumerable points, Color lineColor, Unit lineThickness)
Parameters
Type Name Description
IEnumerable points

The collection of UnitPoint objects (an exception occurs if an object that is not a UnitPoint is found in the collection).

Color lineColor

The line color.

Unit lineThickness

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
C1.C1Preview.C1PrintDocument.CreateRenderPolygon(System.Collections.IEnumerable,System.Boolean)