Borders Object Members

Word Developer Reference

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

Methods

  Name Description
Bb243396.methods(en-us,office.12).gif ApplyPageBordersToAllSections Applies the specified page-border formatting to all sections in a document.
Bb243396.methods(en-us,office.12).gif Item Returns a border in a range or selection.

Properties

  Name Description
Bb243396.properties(en-us,office.12).gif AlwaysInFront True if page borders are displayed in front of the document text. Read/write Boolean.
Bb243396.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb243396.properties(en-us,office.12).gif Count Returns the number of items in the Borders collection. Read-only Long.
Bb243396.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb243396.properties(en-us,office.12).gif 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.
Bb243396.properties(en-us,office.12).gif DistanceFromBottom Returns or sets the space (in points) between the text and the bottom border. Read/write Long.
Bb243396.properties(en-us,office.12).gif DistanceFromLeft Returns or sets the space (in points) between the text and the left border. Read/write Long.
Bb243396.properties(en-us,office.12).gif DistanceFromRight Returns or sets the space (in points) between the right edge of the text and the right border. Read/write Long.
Bb243396.properties(en-us,office.12).gif DistanceFromTop Returns or sets the space (in points) between the text and the top border. Read/write Long.
Bb243396.properties(en-us,office.12).gif Enable Returns or sets border formatting for the specified object. Read/write Long.
Bb243396.properties(en-us,office.12).gif EnableFirstPageInSection True if page borders are enabled for the first page in the section. Read/write Boolean.
Bb243396.properties(en-us,office.12).gif EnableOtherPagesInSection True if page borders are enabled for all pages in the section except for the first page. Read/write Boolean.
Bb243396.properties(en-us,office.12).gif HasHorizontal True if a horizontal border can be applied to the object. Read-only Boolean.
Bb243396.properties(en-us,office.12).gif HasVertical True if a vertical border can be applied to the specified object. Read-only Boolean.
Bb243396.properties(en-us,office.12).gif InsideColor Returns or sets the 24-bit color of the inside borders. Read/write.
Bb243396.properties(en-us,office.12).gif InsideColorIndex Returns or sets the color of the inside borders. Read/write WdColorIndex.
Bb243396.properties(en-us,office.12).gif InsideLineStyle Returns or sets the inside border for the specified object.
Bb243396.properties(en-us,office.12).gif InsideLineWidth Returns or sets the line width of the inside border of an object.
Bb243396.properties(en-us,office.12).gif 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.
Bb243396.properties(en-us,office.12).gif OutsideColor Returns or sets the 24-bit color of the outside borders.
Bb243396.properties(en-us,office.12).gif OutsideColorIndex Returns or sets the color of the outside borders. Read/write WdColorIndex.
Bb243396.properties(en-us,office.12).gif OutsideLineStyle Returns or sets the outside border for the specified object.
Bb243396.properties(en-us,office.12).gif OutsideLineWidth Returns or sets the line width of the outside border of an object. Read/write.
Bb243396.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified Borders collection.
Bb243396.properties(en-us,office.12).gif Shadow True if the specified border is formatted as shadowed. Read/write Boolean.
Bb243396.properties(en-us,office.12).gif SurroundFooter True if a page border encompasses the document footer. Read/write Boolean.
Bb243396.properties(en-us,office.12).gif SurroundHeader True if a page border encompasses the document header. Read/write Boolean.