Pen
Description
The content of the Pen element is a reference to a pen in the mapinfo codespace, which specifies a line pattern code. For example: mapinfo:pen 5
The available line patterns, and corresponding pattern codes, are shown in Line Pattern Codes.
Context
Table 1 lists the elements that can contain, or be contained by, a Pen element.
Contained by | Element | Contains |
---|---|---|
Pen |
(text) |
Attributes
The Pen element has no attributes.
Example
This example specifies a dashed black line that is one pixel wide.
<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
version="MXP_WorkSpace_1_5"
xmlns="http://www.mapinfo.com/mxp">
<LineStyle
stroke="black"
stroke-opacity="1"
width="1"
width-unit="mapinfo:imagesize pixel">
<Pen>mapinfo:pen 9</Pen>
</LineStyle>
</NamedStyle>