Skip to content

UIView

Public 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

The id of the View associated with a UIView.


Methods

Name

Description


Public Method

Closes the view.


Public Method

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

Gets the rectangle containing the coordinates of the view’s drawing area.


Public Method

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 the view.


Public Method

Zoom and center the view to a specified rectangle.


Public Method

Zoom to the sheet size.


Public Method

Zoom the view to fit its contents.