 | ReportLevelToString Method (String, IFormatProvider) |
Returns a string represenation of this instance.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic string ToString(
string format,
IFormatProvider formatProvider
)
Public Function ToString (
format As String,
formatProvider As IFormatProvider
) As String
Parameters
- format
- Type: SystemString
The String specifying the format to use or
null to use the default format. - formatProvider
- Type: SystemIFormatProvider
The IFormatProvider to use or null
to obtain the format information from the current locale setting of the operating system.
Return Value
Type:
StringA string representation of this instance.
Implements
IFormattableToString(String, IFormatProvider)
Remarks
The following string values are valid for
format:
| Format String | Description and Associated Properties |
|---|
| g | General format. Returns the Name of the report level. |
| h | Human readable format. "g" format is used if this instance is one
of the StandardValues; otherwise "r" format is used. |
| r | Round-trip (serialization) format. Returns a string representation containing all
the information to create the instance again using the Parse(String) method. |
| d | Decimal format. Returns the Level in decimal form.
See ToString(String, IFormatProvider) for more info. |
| x | Hexadecimal format. Returns the Level in hexadecimal form.
See ToString(String, IFormatProvider) for more info. |
See Also