PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / LineDef Class / Parse Method / Parse(String,Boolean) Method
A string representing a LineDef (see ToString).
If true, an exception is thrown if an error occurs while parsing; otherwise, errors are ignored.

In This Topic
    Parse(String,Boolean) Method
    In This Topic
    Creates a LineDef object, and initialises it with values acquired by parsing a string representation of a LineDef.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Parse( _
       ByVal s As String, _
       ByVal throwOnError As Boolean _
    ) As LineDef
    public static LineDef Parse( 
       string s,
       bool throwOnError
    )

    Parameters

    s
    A string representing a LineDef (see ToString).
    throwOnError
    If true, an exception is thrown if an error occurs while parsing; otherwise, errors are ignored.

    Return Value

    The new LineDef object.
    See Also