Visual Basic (Declaration) | |
---|---|
<BrowsableAttribute(False)> Public Overridable Property SourceRectangle As Rectangle |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.
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.
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