FormatConditionRuleBase.ConvertToDecimal(Object) Method
In This Article
Converts the specified object to the nullable decimal type.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
value | Object | The object to be converted to the nullable decimal type. |
#Returns
Type | Description |
---|---|
Nullable<Decimal> | The result of the conversion. |
#Remarks
If the input value is of the decimal type, the ConvertToDecimal method returns this value as a result. Otherwise, the conversion of the input value is performed as follows:
The type of the value parameter | Result of the Convert |
---|---|
Date |
Date |
Any numeric value | The result of converting this value using the Convert. |
Other cases | null |
See Also