StreamGeometryContext::LineTo Method (Point, Boolean, Boolean)
.NET Framework (current version)
Draws a straight line to the specified Point.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- point
-
Type:
System.Windows::Point
The destination point for the end of the line.
- 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.
.NET Framework
Available since 3.0
Available since 3.0
Show: