# LineJumpCode Element

Determines the dynamic connectors to which you want to add jumps.

Value | Description
--- | ---
0 | None.
1 | Horizontal lines.
2 | Vertical lines.
3 | Last routed line.
4 | Last displayed line (top shape in the display order).
5 | First displayed line (bottom shape in the display order).

## Syntax

    <LineJumpCode>
        [Unit]
        [F]
        [Err]>
    </LineJumpCode>

## Attributes

Unit

Optional string. Represents a unit of measure. The default is NUM. For details about NUM, see Units of measure.

F

Optional string. Represents the element's formula. This attribute can contain one of the following strings: "someFormula" if the formula exists locally, "No Formula" if the formula is locally deleted or blocked, or "Inh" if the formula is inherited.

If the attribute is not present, the element's formula is a simple constant, for example, <element>5</element>.

Err

Optional string. Indicates that the formula evaluates to an error. The value of Err is the current value (an error message string); the value of the element is the last valid value.

## Element properties

Property | Value
--- | ---
Name | LineJumpCode
Minimum Occurrences | 0
Maximum Occurrences | 1

## Element information

Parent elements

PageLayout

Child elements

None

## Remarks

The LineJumpCode specifies the default behavior for a page. This behavior can be overridden by the ConLineJumpCode element, which specifies jump behavior for a specific shape.

In DatadiagramML, display order is determined by the order of Shape elements within the Page element. The bottom of the display order shows the shape that was displayed first.

The LineJumpCode element is relevant only when contained in a PageSheet element. It is ignored when contained in a DocumentSheet, Shape, or StyleSheet element.

## Example

In the following example, the LineJumpStyle element is 6, and the LineJumpCode element is 1, so when two connector lines cross on a page, a four-sided line jump will be added to the horizontal segment of a dynamic connector.

This code example has been excerpted for clarity.

    <PageLayout>
    …
      <LineJumpCode>1</LineJumpCode>
      <LineJumpStyle>6</LineJumpStyle>
      <PageLineJumpDirX>0</PageLineJumpDirX>
      <PageLineJumpDirY>0</PageLineJumpDirY>
      <LineToNodeX>0.125</LineToNodeX>
      <LineToNodeY>0.125</LineToNodeY>
      <BlockSizeX>0.25</BlockSizeX>
      <BlockSizeY>0.25</BlockSizeY>
      <AvenueSizeX>0.375</AvenueSizeX>
      <AvenueSizeY>0.375</AvenueSizeY>
      <LineToLineX>0.125</LineToLineX>
      <LineToLineY>0.125</LineToLineY>
      <LineJumpFactorX>0.66666666666667</LineJumpFactorX>
      <LineJumpFactorY>0.66666666666667</LineJumpFactorY>
    …
    </PageLayout>

## See also

LineJumpCode cell (Page Layout section)

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp