WdBorderDistanceFrom enumeration (Word)

Specifies whether a page border is measured from the edge of the page or from the text it surrounds.

Name Value Description
wdBorderDistanceFromPageEdge 1 From the edge of the page.
wdBorderDistanceFromText 0 From the text it surrounds.