Version

Value Property (ControlValueEventArgsBase)

Gets/Sets the value which is being sent from the _CALCMANAGER_ to the calculable element, or from the calculable element to the _CALCMANAGER_.
Syntax
'Declaration
 
Public Property Value As Object
public object Value {get; set;}
Remarks

In the case of the ParseValue event, Value returns the value read from an element that has been extended to be calculable using CalcSettings. Changing the Value in an event handler for this event modifies _CALCMANAGER_'s interpretation of that value. For example, before formatting a number as "$5.00", it must be converted into a numeric value like "5.0".

In the case of the FormatValue event, Value returns the value from the _CALCMANAGER_ that is about to be assigned to a property (identified by PropertyName on the calculable element. Changing the Value in this case will assign the newly changed value to the control instead. So this can be used to change the value, the datatype, or simply to format the value to be rendered in a more user-friendly way.

If an application subscribes multiple event handlers to the ParseValue or FormatValue events of the same calculable element, then the effects of changing the Value property are undefined.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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