From Xojo Documentation

Property (As ShadowBrush )
aGraphics.ShadowBrush = newShadowBrushValue
ShadowBrushValue = aGraphics.ShadowBrush

New in 2020r2

Supported for all project types and targets.

The brush to be used to draw a shadow on the object being drawn.

Sample Code

This code in the Paint event of a Canvas draws a rectangle with a shadow:

g.ShadowBrush = New ShadowBrush
g.DrawingColor = Color.Red
g.FillRectangle 0, 0, 100, 100


Desktop and iOS project types on all supported operating systems.

See Also

ShadowBrush class.