Version

Value Property

Gets or sets the value of the editor.
Syntax
'Declaration
 
Public Property Value As Object
public object Value {get; set;}
Remarks

The ValueType property specifies the type of values returned and expected by the Value property. For example, if you set the ValueType to Decimal then the Value property will return decimal values. The user input will be converted to Decimal before returning from Value property. The Text property on the other hand always returns the text representation of the value.

Note: Setting the Value property will also update the Text property.

Note: As the user enters/modifies the contents of the ValueInput, the Text and Value properties will be synchronously updated to reflect the current contents. If the user input can not be parsed into the associated ValueType, the Text property will be updated however the Value property will retain last parsed value. In such a case, the IsValueValid property will return false indicating that the user input is invalid.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also