Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
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) 
<CategoryAttribute("Appearance")>
<DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")>
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# 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")]
public virtual RasterPaintSizeMode SizeMode {get; set;}
Managed Extensions for C++ 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")]
public: __property virtual RasterPaintSizeMode get_SizeMode();
public: __property virtual void set_SizeMode( 
   RasterPaintSizeMode value
);
C++/CLI 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Select one of the size modes available to the control (normal, Stretch, Fit, Fit Always or Fit Width).")]
public:
virtual property RasterPaintSizeMode SizeMode {
   RasterPaintSizeMode get();
   void set (RasterPaintSizeMode value);
}

Return 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also