| Revit Preview Release API |
| FormatOptions..::..IsValidAccuracy Method (Double) |
| FormatOptions Class See Also |
Checks whether an accuracy is valid for the display unit in this FormatOptions.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.0.0.405)
Since:
2014
Syntax
| C# |
|---|
public bool IsValidAccuracy( double accuracy ) |
| Visual Basic |
|---|
Public Function IsValidAccuracy ( _ accuracy As Double _ ) As Boolean |
| Visual C++ |
|---|
public: bool IsValidAccuracy( double accuracy ) |
Parameters
- accuracy
- Type: System..::..Double
The accuracy to check.
Return Value
True if the accuracy is valid, false otherwise.
Remarks
See the Accuracy property for details on
valid accuracy values.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..InvalidOperationException | UseDefault is true in this FormatOptions. |