Compartir a través de


Size3D.Parse(String) Método

Definición

Convierte una representación String de una estructura de tamaño tridimensional en la estructura Size3D equivalente.

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

Parámetros

source
String

Representación String de la estructura de tamaño tridimensional.

Devoluciones

Size3D

Estructura Size3D equivalente.

Ejemplos

En el ejemplo siguiente se muestra cómo convertir una representación de cadena de en Size3D una Size3D estructura .

// Converts a string representation of a 3-D size into a Size3D structure.

Size3D sizeResult = new Size3D();

sizeResult = Size3D.Parse("10,20,30");
// sizeResult is equal to (10,20,30)

// Displaying Results
syntaxString = "sizeResult = Size3D.Parse(\"10,20,30\");";
resultType = "Size3D";
operationString = "Converting a string into a Size3D structure";
ShowResults(sizeResult.ToString(), syntaxString, resultType, operationString);
' Converts a string representation of a 3-D size into a Size3D structure.

Dim sizeResult As New Size3D()

sizeResult = Size3D.Parse("10,20,30")
' sizeResult is equal to (10,20,30)

' Displaying Results
syntaxString = "sizeResult = Size3D.Parse(""10,20,30"")"
resultType = "Size3D"
operationString = "Converting a string into a Size3D structure"
ShowResults(sizeResult.ToString(), syntaxString, resultType, operationString)

Se aplica a