DS Server

Javascript: HeaderFooterEventArgs.distance Property

Property|Introduced in 28.0

Description

The distance, in twips, of a header or footer to the top or bottom of the page.

Syntax

<Number> HeaderFooterEventArgs.distance

Examples

The following example demonstrates HeaderFooterEventArgs.distance in a practical document-editing workflow. The distance, in twips, of a header or footer to the top or bottom of the page.

function inspectDistance(headerFooterEventArgs) {
    const distance = headerFooterEventArgs.distance;
    console.log("distance:", distance);
}