DocumentPreviewSettings.IsViewIdValidForPreview
Description:
Identifies if the view id is valid as a preview view id.
Identifies if the view id is valid as a preview view id.
Remarks:
Only graphical views (3d or 2d) are valid for use as a preview view. Other views (such as view templates) will not pass this method. InvalidElementId is accepted by this method as this id means that no special view is set for the preview.
Only graphical views (3d or 2d) are valid for use as a preview view. Other views (such as view templates) will not pass this method. InvalidElementId is accepted by this method as this id means that no special view is set for the preview.
public bool IsViewIdValidForPreview(
ElementId viewId
)
-
viewIdThe view id.
Return Value
bool
True if the view id is valid for preview, false otherwise.
-
A non-optional argument was null