[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a new rectangle from the specified string representation.
Public Shared Function Parse ( _ source As String _ ) As Rect
public static Rect Parse( string source )
public: static Rect Parse( String^ source )
static member Parse : source:string -> Rect
The following example shows how to use the Parse method to convert a string representation of a rectangle into a Rect structure.
Private Function parseExample() As Rect ' Converts a string representation of a Rect into a Rect structure ' using the Parse static method. Dim resultRect As Rect = Rect.Parse("10,5, 200,50") Return resultRect End Function
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 8 Release Preview, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.