Files
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.1 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
Using Regions 03/30/2017
examples [Windows Forms], regions
regions [Windows Forms], using
7809295b-870f-4107-a8b5-8386c298acd5

Using Regions

The GDI+ xref:System.Drawing.Region class allows you to define a custom shape. The shape can be made up of lines, polygons, and curves.

Two common uses for regions are hit testing and clipping. Hit testing is determining whether the mouse was clicked in a certain region of the screen. Clipping is restricting drawing to a certain region.

In This Section

How to: Use Hit Testing with a Region
Shows how to use a xref:System.Drawing.Region to perform a hit test.

How to: Use Clipping with a Region
Explains how to set the clipping region for a xref:System.Drawing.Graphics object.

Reference

xref:System.Drawing.Region
Describes this class and contains links to all of its members.

xref:System.Drawing.Graphics
Describes this class and contains links to all of its members.