←Select platform

AddLayer Method

Summary

Adds a layer to the container.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public void AddLayer( 
   AnnLayer parentLayer, 
   AnnLayer layer 
) 
-(void)addLayer:(LTAnnLayer)parentLayer layer:(LTAnnLayer)layer; 
public void addLayer(AnnLayer parentLayer, AnnLayer layer); 
             
 function Leadtools.Annotations.Automation.AnnAutomation.AddLayer(  
   parentLayer , 
   layer  
) 
public:  
   void AddLayer( 
      AnnLayer^ parentLayer, 
      AnnLayer^ layer 
   ) 

Parameters

parentLayer
Parent layer in the container. Pass null to add the layer to the root of the container

layer
The layer to add. Must not be null.

Remarks

Use LayerFromSelectedObjects to create a layer from the currently selected objects.

Use DeleteLayer to delete a layer from the container.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly