function Leadtools.Annotations.Automation.AnnAutomation.layerFromSelectedObjects( layerName )
Parameter | Type | Description |
---|---|---|
layerName | string | Optional layer name. Can be null. |
Type | Description |
---|---|
AnnLayer | The newly created layer. |
This method will create a new Leadtools.Annotations.Core.AnnLayer and add all the selected objects to it. The layer is not added to the container since it is up to the caller to determine where to add this layer in the z-order. Either use the AddLayer helper method or use the AnnContainer.Layers collection methods directly.