Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

backgroundColor property

Specifies the color behind the content of the object.

CSS Backgrounds and Borders Module Level 3, Section 3.2CSS 2.1, Section 5.3.2

Syntax

Integer value = object.put_backgroundColor(Variant v);Integer value = object.get_backgroundColor(Variant* sColor);

Property values

Type: VARIANT

One of the following values:

transparent (transparent)

Initial value. Color of the next parent object through which the background is visible.

color (color)

Any valid color value, including those specified in the Color Table.

String format

transparent | <color>

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Valuetransparent

Standards information

Remarks

This property can be set with the other background properties by using the IHTMLStyle::background composite property.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.