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 : SelectLayer Method |
public AnnLayer SelectLayer( AnnLayer activeLayer )
'Declaration
Public Function SelectLayer( _ ByVal activeLayer As AnnLayer _ ) As AnnLayer
public AnnLayer SelectLayer( AnnLayer activeLayer )
-(LTAnnLayer*)selectLayer:(LTAnnLayer)activeLayer;
public AnnLayer selectLayer(AnnLayer activeLayer);
function Leadtools.Annotations.Automation.AnnAutomation.SelectLayer( activeLayer )
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.