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

# TRegion

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

A defined Region on the screen, in which text is written

## Declaration

Source position: graphics.pp line 707

`type TRegion = class(TGraphicsObject)`
`protected`
`procedure SetClipRect();` |  | SetClipRect - specify the rectangle to use for clipping
`function GetClipRect;` |  | GetClipRect - returns the coordinates of the clipping rectangle
`public`
`constructor Create;` |  | Create - constructor for TRegion: calls inherited Create and sets FillChar
`destructor Destroy; override;` |  | Destroy - destructor for TRegion: frees reference then calls inherited Destroy
`procedure Assign(); override;` |  | Assign - if Source is another TRegion, copies the dimensions of the clipping rectangle
`property ClipRect: TRect; [rw]` |  | ClipRect - The rectangle to be used for clipping text
`property Handle: HRGN; [rw]` |  | Operating System Handle for this Region
`property Reference: TWSRegionReference; [r]` |  | A Reference to the current Region
`end;`

## Inheritance

`TRegion` |  | A defined Region on the screen, in which text is written
`TGraphicsObject` |  | TGraphicsObject - Primitive ancestor class, mainly for Delphi compatibility
`TPersistent`
`TObject`

## See also

TRegionData (in same Unit) |  | The Data about the current Region on the Screen or Canvas

The latest version of this document can be found at lazarus-ccr.sourceforge.net.