WebRectangle.BackgroundColor

From Xojo Documentation

Property (As Color )
aWebRectangle.BackgroundColor = newColorValue
or
ColorValue = aWebRectangle.BackgroundColor

New in 2020r1

Supported for all project types and targets.

If HasBackgroundColor is True, this color defines the color of the rectangle's background. If False, the color is white.