RVTDocs.com
Namespace: Autodesk.Revit.DB Class: FormatOptions

FormatOptions.RoundingMethod

Property
Description:
The method used to round values: round to nearest, round up, or round down.
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).
Syntax
public RoundingMethod RoundingMethod { get; set; }
Exceptions
Exception Condition
ArgumentOutOfRangeException When setting this property: A value passed for an enumeration argument is not a member of that enumeration
InvalidOperationException UseDefault is true in this FormatOptions.