Environment.CopyTo Method

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

Parameters

destination
Environment

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

replaceRootBlock
bool

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

Remarks
 
If the 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 Environment control.

.NET Framework

Supported in: 4.8

In this article

Definition