Vector.Parse(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a string representation of a vector into the equivalent Vector structure.
public:
static System::Windows::Vector Parse(System::String ^ source);
public static System.Windows.Vector Parse (string source);
static member Parse : string -> System.Windows.Vector
Public Shared Function Parse (source As String) As Vector
Parameters
- source
- String
The string representation of the vector.
Returns
The equivalent Vector structure.
Examples
The following example shows how to use this method to convert a string representation of a vector into a Vector structure.
private Vector parseExample()
{
// Convert string into a Vector structure.
// vectorResult is equal to (1,3)
Vector vectorResult = Vector.Parse("1,3");
return vectorResult;
}
Private Function parseExample() As Vector
' Convert string into a Vector structure.
' vectorResult is equal to (1,3)
Dim vectorResult As Vector = Vector.Parse("1,3")
Return vectorResult
End Function
Applies to
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา