UIView Class


UIView Class

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.
Top
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.
Top
See Also