C# 클래스 Open.Core.Common.Controls.Editors.PropertyGridStructure.ValueParser

Contains parsing routines for converting values.
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 메소드들

메소드 설명
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