Contact us

All times are UTC - 8 hours

   [ 2 posts ] 
Author Message

Joined: Mon Dec 29, 2014 2:32 pm
Posts: 1
Is there a way to programmatically select\deselect all images in the image viewer. I am currently attempting to use the image viewer as a multi-page thumbnail viewer and need to add a Select All\De-Select All images check box to the list. I know the image viewer allows using the Ctrl and Shift keys for image selection, but need to be able to do this programmatically.

Any help will be appreciated.

User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hello rctexas,

Thank you for contacting us.

Yes, to select\deselect all images programmatically is supported.

Here is the code snippet to select all the images:
DWObject.SelectedImagesCount = DWObject.HowManyImagesInBuffer;
// Loop through each of the images in the viewer.
for (var i = 0; i < DWObject.HowManyImagesInBuffer; i++) {
         DWObject.SetSelectedImageIndex(i, i);

To deselect all the images, please set DWObject.SelectedImagesCount = 0;

And here are some info abut the properties used:

Please feel free to contact us if you need any further info.


Dynamsoft Support Team
Follow us@Twitter, Facebook

Display posts from previous:  Sort by  
   [ 2 posts ] 

Who is online

Users browsing this forum: calvinqd11 and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Copyright © 2018 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team
Fatal: Not able to open ./cache/data_global.php