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

Contains parsing routines for converting values.
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL

Méthodes publiques

Méthode 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

Méthode Description
IsColor ( Type type ) : bool
ToColor ( object value ) : Color

Method Details

FormatValueToString() public static méthode

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.
Résultat string

ParseValue() public static méthode

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).
Résultat object