#1
Posted
:
Tuesday, September 19, 2023 8:15:11 AM(UTC)
Groups: Registered
Posts: 5
Using below links we can find active selected annotation which user selected manually, however, how we can set focus on the annotation by code.
By set/get isSelected, it does not focus.
(https://www.leadtools.com/help/sdk/dh/javascript/ac/annobject-isselected.html)
#2
Posted
:
Tuesday, September 19, 2023 3:19:47 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 163
Was thanked: 9 time(s) in 9 post(s)
You can select objects programmatically for automated annotations using selectObject() and selectObjects(). There's more information on the selectObjects() documentation page.
https://www.leadtools.co...ation-selectobjects.htmlNick Crook
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Friday, September 22, 2023 12:14:04 AM(UTC)
Groups: Registered
Posts: 5
Thanks Nick,
We have done this using following code
let automationAnnotationForSelect = documentViewer?.annotations.automation;
let allContainers = documentViewer.annotations.automation.containers;
automationAnnotationForSelect.selectObject(allContainers.get_item(documentViewer.get_currentPageNumber()-1).children.get_item(0));
Here documentViewer is object of lt.Document.Viewer.DocumentViewer
This will focus first annotation of active page.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.