本文整理匯總了VB.NET中System.Windows.Media.PointCollection.ToString方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET PointCollection.ToString方法的具體用法?VB.NET PointCollection.ToString怎麽用?VB.NET PointCollection.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。
在下文中一共展示了PointCollection.ToString方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: Point
Dim pcString As String
' Instantiating and initializing Point structures
Dim point1 As New Point(10, 10)
Dim point2 As New Point(20, 20)
Dim point3 As New Point(30, 30)
' Instantiating a PointCollection
Dim pointCollection1 As New PointCollection()
' Adding Points to PointCollection
pointCollection1.Add(point1)
pointCollection1.Add(point2)
pointCollection1.Add(point3)
' pointCollection1 is equal to (10,10 20,20 30,30)
' Getting a string representation of the PointCollection
pcString = pointCollection1.ToString()
' pcString is equal to "10,10 20,20 30,30"