FormatOptionsRoundingMethod Property |
The method used to round values: round to nearest, round up, or round down.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic RoundingMethod RoundingMethod { get; set; }
Public Property RoundingMethod As RoundingMethod
Get
Set
public:
property RoundingMethod RoundingMethod {
RoundingMethod get ();
void set (RoundingMethod value);
}
member RoundingMethod : RoundingMethod with get, set
Property Value
RoundingMethod
The rounding method. The default is Nearest.
Exceptions
Remarks
The RoundingMethod property is currently only supported for rebar parameters.
A FormatOptions object containing any rounding method may be returned by Element.GetParameterFormatOptions() and may be passed to the formatting and parsing utilities in the UnitFormatUtils class.
FormatOptions objects used in other contexts must contain the default rounding method (Nearest).
See Also