 | DurationToString Method (String) |
Returns a string representation of this instance.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic string ToString(
string format
)
Public Function ToString (
format As String
) As String
Parameters
- format
- Type: SystemString
The String specifying the format to use or
null to use the default format.
Return Value
Type:
StringA string representation of this instance.
Remarks
The following string values are valid for
format:
| Format String | Description and Associated Properties |
|---|
| g | General format. Replaces the format string by ms, s,
m, or t as appropriate regarding the value of this instance. |
| ms | Millisecond format. |
| s | Second format. |
| h | Hour format. |
| d | Day format. |
| t | Full format, equal to the format returned by ToString. |
If you use capital letters for the string format, the precision of the returned
string representation is extended by three decimal digits.
Adding '0' as a suffix will result in non-significant zeros to always be displayed, e.g. 'g0'.
See Also