Method GetParameterDisplayValue
GetParameterDisplayValue(int, string, bool, bool)
Converts the given raw value into a format ready for display.
public string GetParameterDisplayValue(int parameterID, string rawValue, bool isFromRawString = true, bool includeUnits = true)
Parameters
parameterID
intThe parameter ID.
rawValue
stringThe raw value.
isFromRawString
boolWhether the origin of the value is raw-based. Default is true.
includeUnits
boolWhether units should be included in the value. Default is true.
Returns
GetParameterDisplayValue(int, string, CultureInfo, bool, bool, bool)
Converts the given raw value into a format ready for display.
public string GetParameterDisplayValue(int parameterID, string rawValue, CultureInfo culture, bool displayNumberGroupSeparator, bool isFromRawString = true, bool includeUnits = true)
Parameters
parameterID
intThe parameter ID.
rawValue
stringThe raw value.
culture
CultureInfoOverrides the default culture (InvariantCulture). Use ParameterInfo.DataMinerNumberCulture if you want to use the default DataMiner number grouping separator.
displayNumberGroupSeparator
boolIf
true
, the digits will be grouped using the number group separator of the culture.isFromRawString
boolWhether the origin of the value is raw-based. Default is true.
includeUnits
boolWhether units should be included in the value. Default is true.
Returns
- string
The parameter display value.
GetParameterDisplayValue(int, ParameterValue, CultureInfo, bool)
Converts the given parameter value into a format that is ready for display.
public string GetParameterDisplayValue(int parameterID, ParameterValue value, CultureInfo culture, bool displayNumberGroupSeparator)
Parameters
parameterID
intThe parameter ID.
value
ParameterValueThe value.
culture
CultureInfoOverrides the default culture (InvariantCulture). Use ParameterInfo.DataMinerNumberCulture if you want to use the default DataMiner number grouping separator.
displayNumberGroupSeparator
boolIf true, the digits will be grouped using the number group separator of the culture.
Returns
- string
The display value.
GetParameterDisplayValue(int, ParameterValue)
Converts the given parameter value into a format that is ready for display.
public string GetParameterDisplayValue(int parameterID, ParameterValue value)
Parameters
parameterID
intThe parameter ID.
value
ParameterValueThe value.
Returns
- string
The display value.