windowsforms-devexpress-dot-xtraeditors-dot-calcedit-778e508f.md
Gets or sets the editor’s decimal value.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Appearance")]
[Bindable(false)]
public virtual decimal Value { get; set; }
<DXCategory("Appearance")>
<Bindable(False)>
Public Overridable Property Value As Decimal
| Type | Description |
|---|---|
| Decimal |
The editor’s decimal value.
|
The Value property matches the value of the CalcEdit.EditValue property. It returns the result of the conversion of the edit value to decimal. If the conversion fails, the Value property returns 0.
Assigning Value actually changes the edit value.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Value property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
protected void UpdateCustomFieldEditors() {
calcAmount.Value = ((MyAppointmentFormController)base.Controller).Amount;
tbContact.Text = ((MyAppointmentFormController)base.Controller).ContactInfo;
controller.CustomPrice = calcPrice.Value;
Protected Sub UpdateCustomFieldEditors()
calcAmount.Value = CType(MyBase.Controller, MyAppointmentFormController).Amount
tbContact.Text = CType(MyBase.Controller, MyAppointmentFormController).ContactInfo
controller.CustomPrice = calcPrice.Value
See Also