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

# TLazRegionEllipse

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

Implements a region defined as an Ellipse.

## Declaration

Source position: lazregions.pas line 48

`type TLazRegionEllipse = class(TLazRegionPart)`
`public`
`X1: Integer;` |  | Horizontal coordinate for the vertex.
`Y1: Integer;` |  | Vertical coordinate for the vertex.
`X2: Integer;` |  | Horizontal coordinate for the co-vertex.
`Y2: Integer;` |  | Vertical coordinate for the co-vertex.
`function IsPointInPart(); override;` |  | Indicates if the specified point is located inside the elliptical area for the region.
`end;`

## Inheritance

`TLazRegionEllipse` |  | Implements a region defined as an Ellipse.
`TLazRegionPart` |  | Base class used for rectangular areas in a region.
`TObject`

## Description

TLazRegionEllipse is a TLazRegionPart descendant which implements a region defined as an elliptical area with the specified vertex and co-vertex. The X1, X2, Y1, and Y2 members are provided to represent the horizontal and vertical coordinates for the vertex and co-vertex points.

Instances of TLazRegionEllipse are created when the AddEllipse method in TLazRegion is called.

## See also

TLazRegion.AddEllipse |  | Adds an elliptical area with the specified co-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.