Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.29
|
Leadtools.Annotations.Automation Assembly > Leadtools.Annotations.Automation Namespace > AnnAutomation Class : LayerFromSelectedObjects Method |
'Declaration
Public Overridable Function LayerFromSelectedObjects( _ ByVal layerName As String _ ) As AnnLayer
-(LTAnnLayer*)layerFromSelectedObjects:(NSString*)layerName;
public AnnLayer layerFromSelectedObjects(String layerName);
function Leadtools.Annotations.Automation.AnnAutomation.LayerFromSelectedObjects( layerName )
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.