GetSheets Method (IDocument) Send Feedback
See Also  Example
SheetArray[out]
Array of Sheets
Obsolete. Superseded by IDocument::GetSheets2.

Syntax

Visual Basic 
Function GetSheets() As System.Object
C# 
System.object GetSheets()
JavaScript 
GetSheets() : Array
COM native C++ 
HRESULT GetSheets(
   VARIANT* SheetArray
)  
C++ 
DSRESULT GetSheets(
   dsObjectPtrArray* SheetArray
)  

Parameters

SheetArray[out] or Return Value
Array of Sheets

Example

This code snippet shows how to get the Sheets in a document.

COM native C++

_variant_t pVariantArray = dsDoc->GetSheets();
    if( V_VT( &pVariantArray ) != VT_EMPTY )

    {

                . . .

    }

Example

Remarks

The model is the first element in the array. To get the first Sheet in the array, either:

  • explicitly get the second element in the array.
  • use ISheet::Name and iterate through the array to get the first element in the array not named Model.
 

See Also

Availability

DraftSight V1R1