Click or drag to resize

NumericValueTypeUtilsAddValueTypeToFormat Method (NumericValueType, String, Boolean, NullableBoolean)

Inserts a formatted text inside a numeric value format.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static string AddValueTypeToFormat(
	this NumericValueType valueType,
	string format,
	bool display,
	Nullable<bool> setSymbolBeforeValue = null
)

Parameters

valueType
Type: MicaSystems.UtilsNumericValueType
The format type.
format
Type: SystemString
The value to format.
display
Type: SystemBoolean
If true, escapes the % symbol.
setSymbolBeforeValue (Optional)
Type: SystemNullableBoolean
If null can be before or after depending on the symbol. If true, the symbol is set before. If false, the symbol is set after the value.

Return Value

Type: String
String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NumericValueType. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also