LayersCopyContent Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:15

Description

Copy given layers content to the current page, matching layer type and removing the other layers. It uses the parameters set by the SetPageCopyRenameParam.

This command has been modified in version 2.0. New parameters are highlighted.

Syntax

Page.LayersCopyContent(System::Collections::Generic::List<int> LayerList, bool DeleteTargetLayers, bool AskLayerCheckOut, bool AskToMapRegion, bool ShowDlg, bool allDummyImages, bool clearTexts)

LayerList

list of layers, typically obtained by:

      Dim laylist As New List(Of Integer)

      For Each l As Schema.Class.pageObj.layersEntry_

        In SourcePageobj.layersAttr

        laylist.Add(l.refId)

     ...

DeleteTargetLayers

True or false to delete all layers on the target page before copying

AskLayerCheckOut

Prompt to check-out

AskToMapRegion

Prompt to map region.

ShowDlg

True to show Article Copy dialog or false to perform a silent action, based on SetPageCopyRenameParam

AllDummyImages

True to convert all the images to dummy on the target layer (and in the new articles). In version 2.0 or newer.

clearTexts

True to empty all the texts (both local texts and article's texts). In version 2.0 or newer.

Remarks

Returns EOK or ECANCEL or EFAILED.

Code

See CopyPage script in Page.vb

Context

Page designer

See also

SetPageCopyRenameParam

All layers related commands

CanLayerRecover

GetCurLayer, GetLayerId, GetLayerLockLevel, GetLayerName, GetLayersCount,GetLayerTypeId, GetLayerUserId, GetLayerUserName

IsLayerChecked, IsLayerFrozen, IsLayerListChecked, IsLayerLocked, IsLayerVisible

LayerAdd, LayerDelete, LayerEditDlg, LayerJumpTo, LayerListToggleCheck, LayerMerge, LayerNoJumpTo, LayerRecover, LayersCopyContent, LayerSelect, LayerSelectIdName, LayerTest, LayerToBack, LayerToFront, LayerToggleCheck, LayerToggleFreeze, LayerToggleLock, LayerToggleVisible

TxtLayersDlg