←Select platform

LayerFromSelectedObjects Method

Summary
Creates a new layer from the currently selected objects.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public virtual AnnLayer LayerFromSelectedObjects( 
   string layerName 
) 
- (LTAnnLayer *)layerFromSelectedObjects:(NSString *)layerName; 
public AnnLayer layerFromSelectedObjects(String layerName); 
public:  
   virtual AnnLayer^ LayerFromSelectedObjects( 
      String^ layerName 
   ) 
def LayerFromSelectedObjects(self,layerName): 

Parameters

layerName
Optional layer name. Can be null.

Return Value

The newly created layer.

Remarks

This method will create a new 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.

Requirements

Target Platforms

Help Version 22.0.2023.4.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.