StreamGeometryContext::PolyLineTo Method (IList<Point>^, Boolean, Boolean)
Draws one or more connected straight lines.
Assembly: PresentationCore (in PresentationCore.dll)
public: virtual void PolyLineTo( IList<Point>^ points, bool isStroked, bool isSmoothJoin ) abstract
Parameters
- points
-
Type:
System.Collections.Generic::IList<Point>^
The collection of points that specify destination points for one or more connected straight lines.
- isStroked
-
Type:
System::Boolean
true to make the segment stroked when a Pen is used to render the segment; otherwise, false.
- isSmoothJoin
-
Type:
System::Boolean
true to treat the join between this segment and the previous segment as a corner when stroked with a Pen; otherwise, false.
| Exception | Condition |
|---|---|
| InvalidOperationException | An attempt was made to add a segment without starting a figure by calling the BeginFigure method. |
This method uses the end point of the previous segment as its starting point. If this is the first segment in a figure, it uses the point specified by the BeginFigure method as its start point.
A StreamGeometry cannot be serialized if it contains a Transform or any non-stroked or unfilled segments.
Available since 3.0