Leadtools.Web Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
ImageViewerSizeMode Enumeration
See Also  
Leadtools.Web.Controls Namespace : ImageViewerSizeMode Enumeration




Values that specify how the image is displayed.

Syntax

Visual Basic (Declaration) 
Public Enum ImageViewerSizeMode 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As ImageViewerSizeMode
C# 
public enum ImageViewerSizeMode : Enum 
Managed Extensions for C++ 
__value public enum ImageViewerSizeMode : public Enum 
C++/CLI 
public enum class ImageViewerSizeMode : public Enum 

Members

MemberDescription
Normal Width is the image width. Height is the image height.
Stretch Width is the control's client area width. Height is the client area height. The aspect ratio of the image is not preserved.
FitAlways The 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.
FitWidth Width 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.
Fit Same 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 SizeMode property controls how the image is displayed.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Web.Controls.ImageViewerSizeMode

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also