DXFReaderNETControlDrawPolygon Method
|
Draws a polygon on the control.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntaxpublic void DrawPolygon(
Pen Pen,
List<Vector2> Vertexes,
bool Filled = false,
bool Store = false
)
Public Sub DrawPolygon (
Pen As Pen,
Vertexes As List(Of Vector2),
Optional Filled As Boolean = false,
Optional Store As Boolean = false
)
public:
void DrawPolygon(
Pen^ Pen,
List<Vector2>^ Vertexes,
bool Filled = false,
bool Store = false
)
member DrawPolygon :
Pen : Pen *
Vertexes : List<Vector2> *
?Filled : bool *
?Store : bool
(* Defaults:
let _Filled = defaultArg Filled false
let _Store = defaultArg Store false
*)
-> unit
METHOD DrawPolygon(
Pen AS Pen,
Vertexes AS List<Vector2>,
Filled AS LOGIC := FALSE,
Store AS LOGIC := FALSE
) AS VOID
Parameters
- Pen
- Type: System.DrawingPen
The pen object to render the element. - Vertexes
- Type: System.Collections.GenericListVector2
Vertexes' list of the polygon in drawing's units. - Filled (Optional)
- Type: SystemBoolean
If set to true the element is filled according Pen parameter. - Store (Optional)
- Type: SystemBoolean
If set to true the element is drawn again after a refresh.
RemarksThis method adds a polygon to the drawing without modifying the drawing database. Can be used for for temporary visualizations, such as highlighting or previewing elements, without making permanent changes to the DXF data.
See Also