Supports custom formatting of numeric properties.

Namespace: Simol
Assembly: Simol (in Simol.dll) Version:


public class NumberFormatAttribute : SimolFormatAttribute
Visual Basic
Public Class NumberFormatAttribute _
	Inherits SimolFormatAttribute
Visual C++
public ref class NumberFormatAttribute : public SimolFormatAttribute


Mark properties with this attribute to override the default formatting and conversion rules used for numeric types. See ISimol for more information on the default number formatting rules.

The total number of whole and decimal digits requested may not exceed the maximum number of digits supported by the property type. Care should be taken when using an offset with floating point types. If the number of whole digits requested is too high, precision can be lost due to application of the offset value during formatting.

Inheritance Hierarchy


See Also