RVTDocs.com
Namespace: Autodesk.Revit.UI Class: PreviewControl

PreviewControl

Constructor
Description:
Constructs a preview control.
Syntax
public PreviewControl(
	Document document,
	ElementId viewId
)
Parameters
Parameter Type Description
document Document The document.
viewId ElementId The view id want to browse in this control.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when dbDocument or viewId is.
ArgumentException Thrown when the given document is a linked document or the given viewId is invalid or the view is a schedule or other non-graphical view such as schedule views or the project browser view.
InvalidOperationException Thrown when there is an active preview control already.