PreviewControl Class


Presents a preview control to browse the Revit model.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2013

Syntax

C#
public class PreviewControl : UserControl, 
	IDisposable
Visual Basic
Public Class PreviewControl _
	Inherits UserControl _
	Implements IDisposable
Visual C++
public ref class PreviewControl : public UserControl, 
	IDisposable

Remarks

The dialog or form or window host this preview control must be modal. The view can be any graphical view but not a non-graphical view. And only one can be active. The view can be manipulated by embedded view cube and the visibility and graphical settings set on the view will be evident in the preview control.

Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.Windows.ControlsUserControl
                  Autodesk.Revit.UIPreviewControl

See Also