2024 Class
Changes 0
C

PreviewControl

Description:
Presents a preview control to browse the Revit model.
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:
System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.DependencyObject
      System.Windows.Media.Visual
        System.Windows.UIElement
          System.Windows.FrameworkElement
            System.Windows.Controls.Control
              System.Windows.Controls.ContentControl
                System.Windows.Controls.UserControl
                  Autodesk.Revit.UI.PreviewControl
public class PreviewControl : UserControl, 
	IDisposable
Name Return Type Description
C PreviewControl(Document, ElementId) None Constructs a preview control.
Name Return Type Description
M Dispose() None This method is called if the user explicitly disposes of the object (by calling the Dispose method in other managed languages, or the destructor in C++).
Name Return Type Description
P ScrollbarVisibility ScrollbarVisibility The visibility of the preview view scrollbars.
P UIView UIView The UI view representing the preview view.
P ViewId ElementId The view Id.