Creates a new rectangle from the specified string representation.
Public Shared Function Parse ( _ source As String _ ) As Rect
Dim source As String Dim returnValue As Rect returnValue = Rect.Parse(source)
public static Rect Parse( string source )
public: static Rect Parse( String^ source )
public static function Parse( source : String ) : Rect
You cannot use methods in XAML.
The following example shows how to use the Parse method to convert a string representation of a rectangle into a Rect structure.
private Rect parseExample() { // Converts a string representation of a Rect into a Rect structure // using the Parse static method. Rect resultRect = Rect.Parse("10,5, 200,50"); return resultRect; }
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003