IsValidZoomLevel Method


Verifies if the value of zoom level is valid.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2019.2

Syntax

C#
public bool IsValidZoomLevel(
	int zoomLevel
)
Visual Basic
Public Function IsValidZoomLevel ( _
	zoomLevel As Integer _
) As Boolean
Visual C++
public:
bool IsValidZoomLevel(
	int zoomLevel
)

Parameters

zoomLevel
Type: System Int32
The value of zoom level.

Return Value

True if the value of zoom level is inside of the acceptable range, false otherwise.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →