Point4D.Parse(String) Yöntem

Tanım

String Point4D yapısının gösterimini eşdeğer Point4D yapıya dönüştürür.

public:
 static System::Windows::Media::Media3D::Point4D Parse(System::String ^ source);
public static System.Windows.Media.Media3D.Point4D Parse (string source);
static member Parse : string -> System.Windows.Media.Media3D.Point4D
Public Shared Function Parse (source As String) As Point4D

Parametreler

source
String

String point4D yapısının gösterimi.

Döndürülenler

Eşdeğer Point4D yapıyı döndürür.

Örnekler

Aşağıdaki örnekte, point4D yapısının Parse dize gösterimini bir yapıya Point4D dönüştürmek için yönteminin nasıl kullanılacağı gösterilmektedir.

// Converts a string representation of a 4D point into a Point4D structure.

Point4D pointResult = new Point4D();

pointResult = Point4D.Parse("1,3,5,7");
// pointResult is equal to (1, 3, 5, 7)

// Displaying Results
syntaxString = "pointResult = Point4D.Parse(\"1,3,5,7\");";
resultType = "Point4D";
operationString = "Converts a string into a Point4D structure.";
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);
' Converts a string representation of a 4D point into a Point4D structure.

Dim pointResult As New Point4D()

pointResult = Point4D.Parse("1,3,5,7")
' pointResult is equal to (1, 3, 5, 7)

' Displaying Results
syntaxString = "pointResult = Point4D.Parse(""1,3,5,7"")"
resultType = "Point4D"
operationString = "Converts a string into a Point4D structure."
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString)

Şunlara uygulanır