Infragistics(R) NetAdvantage(R) : Silverlight 2011.2
Value Property
See Also  E-mail your feedback on this topic.
Infragistics.Controls.Editors Namespace > ValueInput Class : Value Property

Gets or sets the value of the editor.

Syntax

Visual Basic (Declaration) 
Public Property Value As Object
C# 
public object Value {get; set;}

Remarks

The Infragistics.Controls.Editors.ValueInput.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 Infragistics.Controls.Editors.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 Infragistics.Controls.Editors.ValueInput.ValueType, the Text property will be updated however the Value property will retain last parsed value. In such a case, the ValueInput.IsValueValid property will return false indicating that the user input is invalid.

See Also