Line,Polyline(線)對象_VML相關

來源:互聯網
上載者:User
Line是做圖中最常用的,它有兩個特殊的屬性 from 和 to ,就是起始點和終止點座標。




●如果要改變線的樣式,LineStyle (Stroke)屬性可以做到:
Single(預設),ThinThin,ThinThick,ThickBetweenThin
●如果要改變線的類型,可以用 DashStyle(Stroke)屬性:





Solid(預設):見
ShortDash:
ShortDot:
ShortDashDot:
ShortDashDotDot:
Dot:
Dash:
LongDash:
DashDot:
LongDashDot:
LongDashDotDot:
●在畫座標的時候,需要箭頭,VML已經定義好了箭頭,在Stroke體現:EndArrow 和 StartArrow 屬性,一個是線開始的時候有箭頭,另一個是線結束的時候有箭頭。箭頭的樣式也有不少:





EndArrow="Block":
EndArrow="Classic": (這個看起來還比較舒服)
EndArrow="Diamond":
StartArrow="Oval":
StartArrow="Open":


PolyLine是 Line 的變形,是不規則的連續的線。它有個特殊的屬性 Points ,用來設定每個點的座標。例如:



一樣可以設定它的線的樣式和類型以及箭頭 ( IE5.0中,PolyLine不支援 Arrow )




  • 相關文章

    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.