StreamGeometryContext::PolyBezierTo Method (IList<Point>^, Boolean, Boolean)
Draws one or more connected Bezier curves.
Assembly: PresentationCore (in PresentationCore.dll)
public: virtual void PolyBezierTo( IList<Point>^ points, bool isStroked, bool isSmoothJoin ) abstract
Parameters
- points
-
Type:
System.Collections.Generic::IList<Point>^
The list of points that specify control points and destination points for one or more Bezier curves. The number of points in this list should be a multiple of three.
- 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. |
The first point in points specifies the first control point, the next specifies the second control point, the third point specifies the end point, the next point specifies the first control point of the next curve, and so on.
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