You are on page 1of 1

CHAPTER 1: Layout Layers 23

layer. This is useful if you want to parent page items created by your plug-in on the same layer the user is
editing.

Sample code

 SDKLayoutHelper::GetActiveSpreadLayerRef

 SnpInspectLayoutModel

Related API

kSpreadLayer

Creating a layer
Solution

Use kNewLayerCmdBoss.

Sample code

SnpProcessDocumentLayerCmds::CreateNewLayer

Related APIs

 kDocumentLayer

 kSpreadLayer

Deleting a layer
You can delete a layer and its associated content.

Solution

Use kDeleteLayerCmdBoss.

Related APIs

 kDocumentLayer

 kSpreadLayer

Iterating through layers


You can examine the layers in a document.

You might also like