ImageGear for .NET
closePage Method
See Also  Send comments on this topic.
ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace > ThumbnailView Class : closePage Method

Glossary Item Box

Close the current image.

Syntax

ASP.NET Ajax Javascript (Specification) 
function closePage() : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfThumbnailView.closePage();

Remarks

This function causes the viewer to close the current image, reverting the viewer back to a state where it is not displaying an image. Unlike the openPage function, this function does not need to interact with the server, so it will complete it's operation (including raising the pageClosed event) before it returns. Like most other viewer operations, the visual appearance of the viewer will not be updated immediately; instead the viewer will wait until the browser is idle before updating its appearance.

If you call this function while an openPage operation is pending, the control will cancel the pending operation and it will not raise the cancelled pageOpened event.

See Also

©2013. Accusoft Corporation. All Rights Reserved.