Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.getBackColor

Retrieves the background color for this control.

Syntax

public Color getBackColor()

Return Value

Returns a Color object that represents the background color for this control. Returns the background color for the control's parent if no background color has been explicitly set for this control. Returns the default system brush if no background color has been explicitly set for this control or for this control's parent.

Remarks

This is an ambient property and will always return a non-null value.

See Also   setBackColor