VintaSoft Imaging .NET SDK 15.2: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebImageViewerJS type / set_CenterImage Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set_CenterImage Method
In This Topic
Sets a value indicating whether the image is centered in the viewer.
Syntax
var instance = new Vintasoft.Imaging.UI.WebImageViewerJS(controlId);

var returnValue; // Type: any

// Parameters
var value; // Type: boolean

returnValue = instance.set_CenterImage(value);

Parameters

value
Indicates whether the viewer must center an image. True - image will be centered in the viewer; False - image will not be centered in the viewer. Default value is False.
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Browser Compatibility
56+
45+
11
See Also