Charting for WinForms Programmer's Guide
Converter.ToEnum Method
See Also
 






Converts the specified string value to its corresponding enumeration member of the specified type.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public static Object ToEnum (
    Type type,
    string s
)

Visual Basic  Copy Code

Public Shared Function ToEnum( _
    type As Type, _
    s As String _
) As Object

 Parameters

type

The type of the enumeration to convert to.

s

The string value to convert from.

 Return Value

A member of the specified enumeration that is deserialized from the specified string, possibly a null reference (Nothing in Visual Basic) if the deserialization failed.

 See Also

Converter Members
Converter Class
MindFusion.Charting Namespace