←Select platform

SelectLayer Method

Summary
Selects a layer in this AnnAutomation.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public AnnLayer SelectLayer( 
   AnnLayer activeLayer 
) 
- (nullable LTAnnLayer *)selectLayer:(nullable LTAnnLayer *)activeLayer NS_SWIFT_NAME(select(_:)); 
public AnnLayer selectLayer(AnnLayer activeLayer); 
public:  
   AnnLayer^ SelectLayer( 
      AnnLayer^ activeLayer 
   ) 
def SelectLayer(self,activeLayer): 

Parameters

activeLayer
New layer to act as the selected layer or null to set the selected layer as the default in the container.

Return Value

The old selected layer.

Remarks

Use this method to denote a layer as the selected layer in the container. All objects added using automation from this point will be added to this layer in the container.

You have to make sure the layer stays alive for the duration it is selected in the automation.

To set the active layer back to the default of the container (its root), call SelectLayer with activeLayer set to null.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.