Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
SourceRectangle Property
See Also 
Leadtools.WinForms Namespace > RasterImageViewer Class : SourceRectangle Property




Represents the part of the image to use as the display source.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public Overridable Property SourceRectangle As Rectangle
Visual Basic (Usage)Copy Code
Dim instance As RasterImageViewer
Dim value As Rectangle
 
instance.SourceRectangle = value
 
value = instance.SourceRectangle
C# 
[BrowsableAttribute(false)]
public virtual Rectangle SourceRectangle {get; set;}
Managed Extensions for C++ 
[BrowsableAttribute(false)]
public: __property virtual Rectangle get_SourceRectangle();
public: __property virtual void set_SourceRectangle( 
   Rectangle value
);
C++/CLI 
[BrowsableAttribute(false)]
public:
virtual property Rectangle SourceRectangle {
   Rectangle get();
   void set (Rectangle value);
}

Return Value

the coordinates of the source drawing area.

Remarks

The SourceRectangle determines which part of the Image gets painted. This property is used when the RasterImageViewer paints or prints the Image. Use an empty rectangle (Rectangle.Empty) to paint the whole image.

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