Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.DrawRegion(TcxRegionHandle,TColor,TColor,Integer,Integer) Method

Draws a specified region on the canvas.

#Declaration

Delphi
procedure DrawRegion(ARegion: TcxRegionHandle; AContentColor: TColor = clDefault; ABorderColor: TColor = clDefault; ABorderWidth: Integer = 1; ABorderHeight: Integer = 1); overload;

#Parameters

Name Type
ARegion TcxRegionHandle
AContentColor TColor
ABorderColor TColor
ABorderWidth Integer
ABorderHeight Integer

#Remarks

Call either of the overloaded procedures to draw a region with the specified outline and fill colors. The first procedure variant accepts a target region while the second variant accepts a handle to the target region as the ARegion parameter. Pass the required solid fill and outline colors as the AContentColor and ABorderColor parameters. Additionally, you can pass pixel width and height of the vertical and horizontal brush strokes that form the region outline.

Note

The DrawRegion procedures call the FillRegion and FrameRegion procedures internally to draw a filled region and its outline.

See Also