({{, (RefLink[Dashed, paclet:ref/Dashed]) 
is a graphics directive specifying that lines that follow should be drawn dashed.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Dashed lines:

Graphics[{Dashed,Line[{{0,0},{2,1}}]}]

Graphics3D[{Dashed,Line[{{0,0,0},{2,1,1}}]}]

Dashed frame:

Grid[Table[x,{4},{7}],Frame->All,FrameStyle->Dashed]

A plot with a dashed line:

Plot[Sin[x],{x,0,2Pi},PlotStyle->Dashed]

OpenersExampleSection1(Spacer1)Scope  (1)

Use (RefLink[EdgeForm, paclet:ref/EdgeForm]) to draw dashed edges:

Graphics[{Pink,EdgeForm[Dashed],Rectangle[]}]

Graphics3D[{EdgeForm[Dashed],Cuboid[]},Boxed->False]

OpenersExampleSection2(Spacer1)Properties & Relations  (3)

(RefLink[Dashed, paclet:ref/Dashed]) is equivalent to (RefLink[Dashing, paclet:ref/Dashing])[{(RefLink[Small, paclet:ref/Small]), (RefLink[Small, paclet:ref/Small])}]:

Dashed

(RefLink[Dashing, paclet:ref/Dashing]) and (RefLink[AbsoluteDashing, paclet:ref/AbsoluteDashing]) provide richer ways to specify dashing:

Table[Graphics[{Dashing[{r,0.1-r}],Line[{{0,0},{2,1}}]}],{r,{0.01,0.03,0.05,0.08}}]

Table[Graphics[{AbsoluteDashing[{d,15-d}],Line[{{0,0},{2,1}}]}],{d,{2,5,8,12}}]

(RefLink[Dashed, paclet:ref/Dashed]) is absolute dashing, independent of the image size:

Table[Graphics[{Dashed,Line[{{0,0},{2,1}}]},ImageSize->s],{s,{50,70,100}}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Dotted, paclet:ref/Dotted])  ▪  (RefLink[DotDashed, paclet:ref/DotDashed])  ▪  (RefLink[Dashing, paclet:ref/Dashing])  ▪  (RefLink[AbsoluteDashing, paclet:ref/AbsoluteDashing])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Graphics Directives, paclet:guide/GraphicsDirectives])}, {▪(RefLinkPlain[Graph Visualization, paclet:guide/GraphVisualization])}, {▪(RefLinkPlain[Graph Styling, Labeling, and Layout, paclet:guide/GraphStylingAndLabeling])}})}})