--- title: "Using Regions" ms.date: "03/30/2017" helpviewer_keywords: - "examples [Windows Forms], regions" - "regions [Windows Forms], using" ms.assetid: 7809295b-870f-4107-a8b5-8386c298acd5 --- # Using Regions The GDI+ 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](how-to-use-hit-testing-with-a-region.md) Shows how to use a to perform a hit test. [How to: Use Clipping with a Region](how-to-use-clipping-with-a-region.md) Explains how to set the clipping region for a object. ## Reference Describes this class and contains links to all of its members. Describes this class and contains links to all of its members.