Workspace.CopyTo Method

Copies all items inside control master collections (Viewport.Labels, Blocks, Layers, Design.Materials, TextStyles, LineTypes, HatchPatterns)) to the specified Workspace control.
Public Overridable Sub CopyTo( _ 
ByVal destination As Workspace, _ 
Optional ByVal replaceRootBlock As Boolean = true _ 
)
This language is not supported or no code example is available.
public virtual void CopyTo( 
Workspace destination
bool replaceRootBlock = true 
)
This language is not supported or no code example is available.

Parameters

destination
Workspace

The Workspace control that is the destination of the elements copied.

replaceRootBlock
bool

>When true the root block of the destination Workspace is replaced.

Remarks
 
If the Design.Viewports collection is empty then a new Viewport is added to it. You need to call Invalidate to see the effect of this command in the destination Workspace control.

.NET Framework

Supported in: 4.7.2

In this article

Definition