RVTDocs.com
Namespace: Autodesk.Revit.UI Class: UIView

UIView.ZoomAndCenterRectangle

Method
Description:
Zoom and center the view to a specified rectangle.
Syntax
public void ZoomAndCenterRectangle(
	XYZ viewCorner1,
	XYZ viewCorner2
)
Parameters
Parameter Type Description
viewCorner1 XYZ A corner of the desired view rectangle in model coordinates.
viewCorner2 XYZ The opposite corner of the desired view rectangle in model coordinates.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null