Pen - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

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.

Table 1. Context
Contained by Element Contains

LineStyle

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>