<background>
(Document Background)
This element describes the fill of the background of a page using vector graphics fills. Fills consist of simple colors, more advanced effects defined through the <fill>
element (§6.1.2.5), or images.
<v:background fillcolor="#c0504d"> </v:background>
This uses the <fill>
element (§6.1.2.5) to create a gradient background fill:
<v:background> <v:fill type="gradient" color="#c0504d" color2="#f0504d" angle="45"/> </v:background>
Child Elements |
Subclause |
---|---|
|
Attributes |
Description |
---|---|
Namespace: urn:schemas-microsoft-com:office:office |
Specifies how a shape will render for black-and-white output devices. When a shape is printed on a black-and-white printer or displayed in a black-and-white view in an application, several options are possible. Default is auto, which will use example:
<v:shape ... o:bwmode="grayscale" ... > </v:shape> The possible values for this attribute are defined by the ST_BWMode simple type (§6.2.3.2). |
Namespace: urn:schemas-microsoft-com:office:office |
Specifies the black-and-white mode for normal black-and-white output devices. Default is example:
<v:shape ... o:bwmode="lightgrayscale" ... > </v:shape> The possible values for this attribute are defined by the ST_BWMode simple type (§6.2.3.2). |
Namespace: urn:schemas-microsoft-com:office:office |
Specifies the black-and-white mode for pure black-and-white output devices. Default is example:
<v:shape ... o:bwmode="highcontrast" ... > </v:shape> The possible values for this attribute are defined by the ST_BWMode simple type (§6.2.3.2). |
|
Specifies the color to use for the fill. Default is example:
<v:shape ... fillcolor="red" ... > </v:shape> This is equivalent to: <v:shape ... fillcolor="#ff0000" ... > </v:shape> The possible values for this attribute are defined by the ST_ColorType simple type (§6.1.3.1). |
|
Specifies whether the closed path will be filled. Default is example:
<v:shape ... filled="f" fillcolor="red" ...> </v:shape> The possible values for this attribute are defined by the ST_TrueFalse simple type (§6.1.3.14). |
|
Specifies a unique identifier that can be used to reference a VML object. Default is no value. example:
<v:shape ... id="myShape" ... > </v:shape> The possible values for this attribute are defined by the XML Schema string datatype. |
Namespace: urn:schemas-microsoft-com:office:office |
Specifies the target resolution used for WordprocessingML documents with a gradient or picture filled background. Default is no value. Allowed values are:
The possible values for this attribute are defined by the ST_ScreenSize simple type (§6.2.3.22). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Background">
<sequence>
<element ref="fill" minOccurs="0"/>
</sequence>
<attributeGroup ref="AG_Id"/>
<attributeGroup ref="AG_Fill"/>
<attribute ref="o:bwmode"/>
<attribute ref="o:bwpure"/>
<attribute ref="o:bwnormal"/>
<attribute ref="o:targetscreensize"/>
</complexType>