-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.LineSegment |
winrt class |
Represents a line drawn between two points, which can be part of a PathFigure within Path data.
<LineSegment .../>
This example creates a simple PathGeometry made up of a single PathFigure with a LineSegment and displays it using a Path element. The PathFigure object's StartPoint is set to (10,20)
and a LineSegment is defined with an end point of (100,130)
.
[!code-xamlGeometryOvw5]
PathSegment, Path, PathGeometry, XAML vector-based drawing sample, Draw shapes