SetSelectedImageIndex()

Description

Selects images programatically (instead of seleting by clicking on the images).

Syntax

.SetSelectedImageIndex(selectionArrayindex, newIndextobeSelected);

Parameters

<short> selectionArrayindex: specifies the index of the selected Array to be used for storing the next image index to be selected.
<short> newIndextobeSelected: specifies the index of the image to be selected.

Return value

bool

true indicates success. false indicates failure.

When false is returned, check ErrorCode or ErrorString for error information.

See also

SelectedImagesCount
RemoveAllSelectedImages

Example

//This will remove the 2nd and 3rd images
DWObject.SelectedImagesCount = 2;
for(var i = 0; i < 2; i++){
    DWObject.SetSelectedImageIndex(i,i + 1);
}
DWObject.RemoveAllSelectedImages();
Is this page helpful?

Leave a Reply

Your email address will not be published.