[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'LazRegions' (#lcl)

# TLazRegionPolygon

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents a region defined as a series of vertices for a polygon.

## Declaration

Source position: lazregions.pas line 39

`type TLazRegionPolygon = class(TLazRegionPart)`
`public`
`Points: ;` |  | Array of TPoint values that define the vertices for the polygonal region.
`FillMode: TLazRegionFillMode;` |  | Fill mode used for the polygon.
`function IsPointInPart(); override;` |  | Indicates if a point with the specified coordinates is within the vertices for the polygonal region.
`end;`

## Inheritance

`TLazRegionPolygon` |  | Represents a region defined as a series of vertices for a polygon.
`TLazRegionPart` |  | Base class used for rectangular areas in a region.
`TObject`

## Description

TLazRegionPolygon is a TLazRegionPart descendant which implements a region as a polygonal area defined by a series of vertices.

The Points member contains the TPoint values that define the vertices for the polygon. FillMode defines how the interior of the polygon is filled, and uses values like those defined for the Windows GDI API. An overridden IsPointInPart is provided to determine if a point is within the bounds for the polygonal area.

Instances of TLazRegionPolygon are created when the AddPolygon method in TLazRegion is called.

## See also

TLazRegion.AddPolygon |  | Adds a polygonal area with the specified vertices to the region.
TLazRegion.Parts |  | List with the Rectangles, Polygons, and Ellipses that define the display area for the region.
TLazRegionPart |  | Base class used for rectangular areas in a region.