CopySheet Method (IDocument)

CopySheet Method (IDocument) | Send Feedback
See Also

Sheet[out]
  New Sheet

Name
  Name of the new sheet to create

SheetToCopy
  Name of the existing sheet to copy to create the new sheet

Creates a new Sheet by copying the specified existing Sheet.

# Syntax

Visual Basic |
--- | ---
    Function CopySheet( _
       ByVal Name As System.String, _
       ByVal SheetToCopy As System.String _
    ) As Sheet

C# |
--- | ---
    Sheet CopySheet(
       System.string Name,
       System.string SheetToCopy
    )

JavaScript |
--- | ---
    CopySheet(
       Name : String,
       SheetToCopy : String
    ) : dsSheet

COM native C++ |
--- | ---
    HRESULT CopySheet(
       BSTR Name,
       BSTR SheetToCopy,
       ISheet** Sheet
    )

C++ |
--- | ---
    DSRESULT CopySheet(
       const dsString& Name,
       const dsString& SheetToCopy,
       dsSheet** Sheet
    )

#### Parameters

Name
  Name of the new sheet to create
SheetToCopy
  Name of the existing sheet to copy to create the new sheet
Sheet[out] or Return Value
  New Sheet

# See Also

####

IDocument Interface
IDocument Members
IDocument::CreateSheet Method ()
IDocument::CreateSheetByTemplate Method ()
IDocument::GetSheet Method ()
IDocument::GetSheets Method ()
IDocument::HasSheet Method ()
IDocument::RemoveSheet Method ()

# Availability

DraftSight V1R5.0