RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Viewport

Viewport.SheetId

Property
Description:
The element id of the ViewSheet on which the viewport appears, or InvalidElementId if this viewport does not associate a view with placement onto a sheet.
Syntax
public ElementId SheetId { get; }