getMargin()

Description

Gets the margin between images when multiple images are displayed in an image viewer.

Syntax

ImageViewerObject.ui.getMargin();

Return value

<short>

If it fails to get the margin, it returns null.

Remarks

The default value will auto judge.

When an error occurs, check getErrorCode() or getErrorString() for error information.

Example

             var imageviewer = DCSObject.getImageViewer ("ImageViewerContainer");  // Get a specified image viewer
             imageviewer.ui.setImageViewMode(2,2);
             imageviewer.ui.getMargin();  // Get the margin between images
      

See also

.ui.setImageViewMode()
.ui.setMargin()