C# Класс Open.Core.Common.Controls.Editors.PropertyGridStructure.ValueParser

Contains parsing routines for converting values.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
IsColor ( Type type ) : bool
ToColor ( object value ) : Color

Описание методов

FormatValueToString() публичный статический Метод

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.
Результат string

ParseValue() публичный статический Метод

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).
Результат object