Visual Basic (Declaration) | |
---|---|
Public Enum ImageViewerSizeMode Inherits System.Enum Implements IComparable, IConvertible, IFormattable |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ImageViewerSizeMode |
C# | |
---|---|
public enum ImageViewerSizeMode : System.Enum, IComparable, IConvertible, IFormattable |
C++/CLI | |
---|---|
public enum class ImageViewerSizeMode : public System.Enum, IComparable, IConvertible, IFormattable |
Member | Description |
---|---|
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. |
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. |
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. |
The WebImageViewer.SizeMode property controls how the image is displayed.
System.Object
System.ValueType
System.Enum
Leadtools.Web.Controls.ImageViewerSizeMode
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7