A collection of Border objects that represent the borders of an object.

Methods

Name Description
ApplyPageBordersToAllSections Applies the specified page-border formatting to all sections in a document.
Item Returns a border in a range or selection.

Properties

Name Description
AlwaysInFront True if page borders are displayed in front of the document text. Read/write Boolean.
Application Returns an Application object that represents the Microsoft Word application.
Count Returns the number of items in the Borders collection. Read-only Long.
Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
DistanceFrom Returns or sets a value that indicates whether the specified page border is measured from the edge of the page or from the text it surrounds. Read/write WdBorderDistanceFrom.
DistanceFromBottom Returns or sets the space (in points) between the text and the bottom border. Read/write Long.
DistanceFromLeft Returns or sets the space (in points) between the text and the left border. Read/write Long.
DistanceFromRight Returns or sets the space (in points) between the right edge of the text and the right border. Read/write Long.
DistanceFromTop Returns or sets the space (in points) between the text and the top border. Read/write Long.
Enable Returns or sets border formatting for the specified object. Read/write Long.
EnableFirstPageInSection True if page borders are enabled for the first page in the section. Read/write Boolean.
EnableOtherPagesInSection True if page borders are enabled for all pages in the section except for the first page. Read/write Boolean.
HasHorizontal True if a horizontal border can be applied to the object. Read-only Boolean.
HasVertical True if a vertical border can be applied to the specified object. Read-only Boolean.
InsideColor Returns or sets the 24-bit color of the inside borders. Read/write.
InsideColorIndex Returns or sets the color of the inside borders. Read/write WdColorIndex.
InsideLineStyle Returns or sets the inside border for the specified object.
InsideLineWidth Returns or sets the line width of the inside border of an object.
JoinBorders True if vertical borders at the edges of paragraphs and tables are removed so that the horizontal borders can connect to the page border. Read/write Boolean.
OutsideColor Returns or sets the 24-bit color of the outside borders.
OutsideColorIndex Returns or sets the color of the outside borders. Read/write WdColorIndex.
OutsideLineStyle Returns or sets the outside border for the specified object.
OutsideLineWidth Returns or sets the line width of the outside border of an object. Read/write.
Parent Returns an Object that represents the parent object of the specified Borders collection.
Shadow True if the specified border is formatted as shadowed. Read/write Boolean.
SurroundFooter True if a page border encompasses the document footer. Read/write Boolean.
SurroundHeader True if a page border encompasses the document header. Read/write Boolean.