TryConvertNumber(String,Boolean,Double) Method (DocumentUnitsConverter)
Tries to convert a string to a number.
'Declaration
Public Overridable Function TryConvertNumber( _
ByVal As System.String, _
ByVal As Boolean, _
ByRef As Double _
) As Boolean
public virtual bool TryConvertNumber(
System.String ,
bool ,
out double
)
public: virtual bool TryConvertNumber(
System.String ,
bool ,
[PARAMFLAG::Out] double
)
public:
virtual bool TryConvertNumber(
System.String ,
bool ,
[Out] double
)
Parameters
- text
- The string to convert.
- value
- The converted value.
- allowNegative
- A value indicating whether negative number is allowed.
Return Value
True if string was converted successfully; otherwise, false.
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5