ImageViewerSizeMode Enumeration

Summary
Values that specify how the image is displayed.
Syntax
C#
VB
C++
public enum ImageViewerSizeMode 
  
Public Enum ImageViewerSizeMode  
   Inherits System.Enum 
   Implements System.IComparable, System.IConvertible, System.IFormattable  
public enum class ImageViewerSizeMode : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable   
Members
ValueMemberDescription
0NormalWidth is the image width. Height is the image height.
1StretchWidth is the control's client area width. Height is the client area height. The aspect ratio of the image is not preserved.
2FitAlwaysThe largest possible width or height is set to the control's client area width or height. The remaining dimension is set proportionally to maintain the aspect ratio of the image.
3FitWidthWidth is the control's client area width. Height is set proportionally to maintain the aspect ratio of the image. If necessary, the control will implement a vertical scroll bar.
4FitSame as FitAlways if the image width or height is greater than the viewing area; otherwise, same as Normal. The aspect ratio of the image is maintained.
Remarks

The WebImageViewer.SizeMode property controls how the image is displayed.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Web Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.