PrintDocument for WinForms
RenderDirectPolygon(IEnumerable,LineDef,Brush) メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス > RenderDirectPolygon メソッド : RenderDirectPolygon(IEnumerable,LineDef,Brush) メソッド
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).
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.

シンタックス
'宣言
 
Public Overloads Sub RenderDirectPolygon( _
   ByVal points As System.Collections.IEnumerable, _
   ByVal line As LineDef, _
   ByVal fillBrush As System.Drawing.Brush _
) 
'使用法
 
Dim instance As C1PrintDocument
Dim points As System.Collections.IEnumerable
Dim line As LineDef
Dim fillBrush As System.Drawing.Brush
 
instance.RenderDirectPolygon(points, line, fillBrush)
public void RenderDirectPolygon( 
   System.Collections.IEnumerable points,
   LineDef line,
   System.Drawing.Brush fillBrush
)

パラメータ

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).
解説

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

参照

C1PrintDocument クラス
C1PrintDocument メンバ
オーバーロード一覧
RenderPolygon クラス
RenderDirect(Unit,Unit,RenderObject,Object,Object) メソッド
StartDoc メソッド
EndDoc メソッド
Generate メソッド