Skip to Content
Windows Forms Programming in Visual Basic .NET
book

Windows Forms Programming in Visual Basic .NET

by Chris Sells, Justin Gehtland
October 2003
Intermediate to advanced
736 pages
15h 25m
English
Addison-Wesley Professional
Content preview from Windows Forms Programming in Visual Basic .NET

Regions

Whereas paths define a set of figures, with both a frame and an area, a region defines only an area. A region can be used for filling or, most importantly, clipping. A region is modeled in .NET with the Region class from the System.Drawing namespace:

 NotInheritable Class Region ' Constructors Public Sub New(...) ' Methods Sub Complement(...) Sub Exclude(...) Shared Function FromHrgn(hrgn As IntPtr) As Region Function GetBounds(g As Graphics) As RectangleF Function GetHrgn(g As Graphics) As IntPtr Function GetRegionData() As RegionData Function GetRegionScans(matrix As Matrix) As RectangleF() Sub Intersect(...) Function IsEmpty(g As Graphics) As Boolean Function IsInfinite(g As Graphics) As Boolean Function IsVisible(...) As Boolean Sub ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Visual Basic .NET

Learning Visual Basic .NET

Jesse Liberty
Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt

Publisher Resources

ISBN: 0321125193Purchase book