LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
SizeMode Property
See Also 
Leadtools.WinForms Namespace > RasterImageViewer Class : SizeMode Property



Determines how the control displays the image and the automatic adjustments of the display rectangles.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")>
<CategoryAttribute("Appearance")>
Public Overridable Property SizeMode As RasterPaintSizeMode
Visual Basic (Usage)Copy Code
Dim instance As RasterImageViewer
Dim value As RasterPaintSizeMode
 
instance.SizeMode = value
 
value = instance.SizeMode
C# 
[DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")]
[CategoryAttribute("Appearance")]
public virtual RasterPaintSizeMode SizeMode {get; set;}
C++/CLI 
[DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")]
[CategoryAttribute("Appearance")]
public:
virtual property RasterPaintSizeMode SizeMode {
   RasterPaintSizeMode get();
   void set (    RasterPaintSizeMode value);
}

Property Value

Value which determines how the control displays the image and the automatic adjustments of the display rectangles.

Example

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also