Visual Basic | |
---|---|
Function GetSheets2() As System.Object |
C# | |
---|---|
System.object GetSheets2() |
JavaScript | |
---|---|
GetSheets2() : Array |
COM native C++ | |
---|---|
HRESULT GetSheets2( VARIANT* SheetArray ) |
C++ | |
---|---|
DSRESULT GetSheets2( dsObjectPtrArray* SheetArray ) |
Parameters
- SheetArray[out] or Return Value
- Array of Sheets
This code snippet shows how to get the Sheets in a document.
COM native C++
_variant_t pVariantArray = dsDoc->GetSheets2();
if( V_VT( &pVariantArray ) != VT_EMPTY ){
. . .
}
The difference between this method and the now obsolete IDocument::GetSheets is that the obsolete method returned the model as the first element in the array. This method returns all of the Sheets in the drawing, excluding the model.
IDocument Interface
IDocument Members
IDocument::CopySheet Method ()
IDocument::CreateSheet Method ()
IDocument::CreateSheetByTemplate Method ()
IDocument::GetSheet Method ()
IDocument::HasSheet Method ()
IDocument::RemoveSheet Method ()
IDocument Members
IDocument::CopySheet Method ()
IDocument::CreateSheet Method ()
IDocument::CreateSheetByTemplate Method ()
IDocument::GetSheet Method ()
IDocument::HasSheet Method ()
IDocument::RemoveSheet Method ()
DraftSight V1R6.0