Line,polyline (line) object _VML related

Source: Internet
Author: User
Tags polyline relative
Line is the most commonly used in graphs, which have two special properties from and to, which are the starting and ending point coordinates.
<v:line from= "0,0" to= "100,50" style= "position:relative"; />



If you want to change the line style, the LineStyle (Stroke) attribute can do this:
Single(default), Thinthin, Thinthick, Thickbetweenthin
If you want to change the type of the line, you can use the DashStyle (Stroke) Property:

<v:line style= "position:relative" from= "0,0" to= "100,0" >
<v:stroke dashstyle= "Dot"/>
</v:line>

Solid(default): see above
Shortdash:
Shortdot:
Shortdashdot:
Shortdashdotdot:
Dot:
Dash:
Longdash:
Dashdot:
Longdashdot:
Longdashdotdot:
In the drawing of coordinates, the arrow is needed, and VML has defined the arrows in the stroke: EndArrow and Startarrow properties, one is when the line begins with an arrow, and the other is when the line ends with an arrow. There are also many styles of arrows:

<v:line style= "position:relative" from= "0,0" to= "100,0" >
<v:stroke endarrow= "Classic"/>
</v:line>

endarrow= "Block":
endarrow= "Classic": (this looks more comfortable)
endarrow= "Diamond":
startarrow= "Oval":
startarrow= "Open":


polylineis a line of deformation, is irregular continuous lines. It has a special attribute Points that sets the coordinates for each point. For example:

<v:polyline filled= "false" points= "0,0 0,100 20,150 200,100"style= "Position:relative"/>

You can set the style and type of its line as well as the arrows (IE5.0, polyline does not support arrow)

<v:polyline filled= "false" points= "0,0 0,100 20,150 200,100"style= "Position:relative"/>
<v:stroke startarrow= "Oval" endarrow= "Classic" dashstyle= "Dot"/>
</v:PolyLine>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.