LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
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;}
C++/CLI 
[BrowsableAttribute(false)]
public:
virtual property Rectangle SourceRectangle {
   Rectangle get();
   void set (    Rectangle value);
}

Property 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 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also