本文整理匯總了VB.NET中System.Windows.Point.Explicit操作符的典型用法代碼示例。如果您正苦於以下問題:VB.NET Point.Explicit操作符的具體用法?VB.NET Point.Explicit怎麽用?VB.NET Point.Explicit使用的例子?那麽, 這裏精選的操作符代碼示例或許可以為您提供幫助。您也可以進一步了解該操作符所在類System.Windows.Point
的用法示例。
在下文中一共展示了Point.Explicit操作符的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: overloadedExplicitOperatorVectorExample
Private Function overloadedExplicitOperatorVectorExample() As Vector
Dim point1 As New Point(10, 5)
' Explicitly converts a Point structure into a Vector structure.
' returnVector is equal to (10,5).
Dim returnVector As Vector = CType(point1, Vector)
Return returnVector
End Function
示例2: overloadedExplicitOperatorSizeExample
Private Function overloadedExplicitOperatorSizeExample() As Size
Dim point1 As New Point(10, 5)
' Explicitly converts a Point structure into a Size structure.
' returnSize has a width of 10 and a height of 5
Dim returnSize As Size = CType(point1, Size)
Return returnSize
End Function