UIView
A class containing data about view windows in the Revit user interface.
Inheritance Hierarchy
System.Object
Autodesk.Revit.UI.UIView
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class UIView : IDisposable
The UIView type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
ViewId
The id of the View associated with a UIView.
Methods
Name
Description
Public Method
Close
Closes the view.
Public Method
Dispose
Releases all resources used by the UIView
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
GetWindowRectangle
Gets the rectangle containing the coordinates of the view’s drawing area.
Public Method
GetZoomCorners
Gets the corners of the view’s rectangle. The two points that define the corners of the view’s rectangle in model coordinates.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Public Method
Zoom
Zoom the view.
Public Method
ZoomAndCenterRectangle
Zoom and center the view to a specified rectangle.
Public Method
ZoomSheetSize
Zoom to the sheet size.
Public Method
ZoomToFit
Zoom the view to fit its contents.