Skip to content

Commit

Permalink
Clarify that the LINE command in SVG can specify multiple points (#1841)
Browse files Browse the repository at this point in the history
* Update path-markup-syntax.md

* Update path-markup-syntax.md

* Update path-markup-syntax.md
  • Loading branch information
adegeo authored Jun 3, 2024
1 parent 0cd4e0d commit f8b1353
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,14 @@ Paths are discussed in [Shapes and Basic Drawing in WPF Overview](shapes-and-bas

A draw command can consist of several shape commands. The following shape commands are available: line, horizontal line, vertical line, cubic Bezier curve, quadratic Bezier curve, smooth cubic Bezier curve, smooth quadratic Bezier curve, and elliptical arc.

You enter each command by using either an uppercase or a lowercase letter: uppercase letters denote absolute values and lowercase letters denote relative values: the control points for that segment are relative to the end point of the preceding example. When sequentially entering more than one command of the same type, you can omit the duplicate command entry; for example, `L 100,200 300,400` is equivalent to `L 100,200 L 300,400`. The following table describes the **move** and **draw** commands.
You enter each command by using either an uppercase or a lowercase letter: uppercase letters denote absolute values and lowercase letters denote relative values: the control points for that segment are relative to the end point of the preceding example.

> [!TIP]
> When sequentially entering more than one command of the same type, you can omit the duplicate command entry; for example, `L 100,200 300,400` is equivalent to `L 100,200 L 300,400`.
### Line Command

Creates a straight line between the current point and the specified end point. `l 20 30` and `L 20,30` are examples of valid **line** commands.
Creates a straight line between the current point and the specified end point. `l 20 30` and `L 20,30` are examples of valid **line** commands.

|Syntax|
|------------|
Expand Down

0 comments on commit f8b1353

Please sign in to comment.