Ribbon for WinForms | ComponentOne
C1.Win.Interop Namespace / Size Structure / Parse Method
The string to convert.
OUT: the created Size structure.
Indicates whether an exception should be thrown if the string cannot be converted.

In This Topic
    Parse Method (Size)
    In This Topic
    Converts a string to a Size structure.
    Syntax
    'Declaration
     
    
    Public Shared Function Parse( _
       ByVal s As String, _
       ByRef result As Size, _
       ByVal throwException As Boolean _
    ) As Boolean
    public static bool Parse( 
       string s,
       out Size result,
       bool throwException
    )

    Parameters

    s
    The string to convert.
    result
    OUT: the created Size structure.
    throwException
    Indicates whether an exception should be thrown if the string cannot be converted.

    Return Value

    true if no error occurred, false otherwise (if throwException is false).
    See Also