C# Class Open.Core.Common.Controls.Editors.PropertyGridStructure.ValueParser

Contains parsing routines for converting values.
Datei anzeigen Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
FormatValueToString ( PropertyModel property ) : string

The default string formatter for converting a property value to a display string.

ParseValue ( string textValue, PropertyModel property, Exception &error ) : object

Parses a string representation of a value converting it to it's native type.

Private Methods

Method Description
IsColor ( Type type ) : bool
ToColor ( object value ) : Color

Method Details

FormatValueToString() public static method

The default string formatter for converting a property value to a display string.
public static FormatValueToString ( PropertyModel property ) : string
property PropertyModel The property to format.
return string

ParseValue() public static method

Parses a string representation of a value converting it to it's native type.
public static ParseValue ( string textValue, PropertyModel property, Exception &error ) : object
textValue string The text display version of the value to parse.
property PropertyModel The definition of the property the value pertains to.
error System.Exception An error to return if parsing was not successful (null if parsed successfully).
return object