本文整理汇总了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"