[Table of Contents] [docx version]

VML Reference Material - VML

bordertop (Top Border)

This element specifies the properties for the top border of a VML object.

Parent Elements

arc6.1.2.1); curve6.1.2.3); group6.1.2.7); image6.1.2.10); line6.1.2.12); oval6.1.2.13); polyline6.1.2.15); rect6.1.2.16); roundrect6.1.2.17); shape6.1.2.19); shapetype6.1.2.20)

 

Attributes

Description

shadow (Border shadow)

Specifies whether this border should be modified to create the appearance of a shadow.

 

For the right and bottom borders, this is accomplished by duplicating the border below and right of the normal border location. For the left and top borders, this is accomplished by moving the border down and to the right of its original location.

 

If this attribute is omitted, then the border is not given the shadow effect.

 

[Example: Consider a top border which shall appear with a shadow effect, resulting in the following content:

 

<wd:bordertop wd:shadow="true" ... />

 

This element's shadow attribute is true, indicating that the shadow effect shall be applied to the border. end example]

 

The possible values for this attribute are defined by the ST_BorderShadow simple type (§6.3.3.1).

type (Border Style)

Specifies the style of border used on this object.

 

See the simple type definition for a description of each border style.

 

[Example: Consider a left border resulting in the following WordprocessingML:

 

<wd:borderleft wd:type="single" …/>

 

This border's type is single, indicating that the border style is a single line. end example]

 

The possible values for this attribute are defined by the ST_BorderType simple type (§6.3.3.2).

width (Border Width)

Specifies the width of the current border.

 

The width of this border is specified in measurements of eighths of a point, with a minimum value of two (one-fourth of a point) and a maximum value of 96 (twelve points). Any values outside this range may be reassigned to a more appropriate value.

 

[Example: Consider a document with a three point wide dashed line border on all sides, resulting in the following WordprocessingML markup:

 

<wd:bordertop wd:type="dashed" wd:width="24" …/>

<wd:borderleft wd:type="dashed" wd:width="24" …/>

<wd:borderbottom wd:type="dashed" wd:width="24" …/>

<wd:borderright wd:type="dashed" wd:width="24" …/>

 

The width attribute specifies the size in eighths of a point (24 eighths of a point = 3 points). end example]

 

The possible values for this attribute are defined by the XML Schema positiveInteger datatype.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Border">

   <attribute name="type" type="ST_BorderType" use="optional"/>

   <attribute name="width" type="xsd:positiveInteger" use="optional"/>

   <attribute name="shadow" type="ST_BorderShadow" use="optional"/>

</complexType>