Borders Members

Include Protected Members
Include Inherited Members

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

The Borders type exposes the following members.

Methods

  Name Description
Public method ApplyPageBordersToAllSections Applies the specified page-border formatting to all sections in a document.
Public method GetEnumerator (Inherited from IEnumerable.)

Top

Properties

  Name Description
Public property AlwaysInFront Returns or sets a value that indicates if page borders are displayed in front of the document text.
Public property Application Returns an Application object that represents the Microsoft Word application.
Public property Count Returns the number of items in the specified collection.
Public property Creator Returns a value that indicates the application in which the specified object was created.
Public property 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.
Public property DistanceFromBottom Returns or sets the space (in points) between the text and the bottom border.
Public property DistanceFromLeft Returns or sets the space (in points) between the text and the left border.
Public property DistanceFromRight Returns or sets the space (in points) between the right edge of the text and the right border.
Public property DistanceFromTop Returns or sets the space (in points) between the text and the top border.
Public property Enable Returns or sets the border formatting for the specified object.
Public property EnableFirstPageInSection Returns or sets a value that indicates if page borders are enabled for the first page in the section.
Public property EnableOtherPagesInSection Returns or sets a value that indicates if page borders are enabled for all pages in the section except for the first page.
Public property HasHorizontal Returns a value that indicates if a horizontal border can be applied to the object.
Public property HasVertical Returns a value that indicates if a vertical border can be applied to the specified object.
Public property InsideColor Returns or sets a value that indicates the 24-bit color of the inside borders.
Public property InsideColorIndex Returns or sets the color of the inside borders.
Public property InsideLineStyle Returns or sets the inside border for the specified object.
Public property InsideLineWidth Returns or sets the line width of the inside border of an object.
Public property Item Returns a value that indicates if vertical borders at the edges of paragraphs and tables are removed so that the horizontal borders can connect to the page border.
Public property JoinBorders Returns or sets a value that indicates if vertical borders at the edges of paragraphs and tables are removed so that the horizontal borders can connect to the page border.
Public property OutsideColor Returns or sets the 24-bit color of the outside borders.
Public property OutsideColorIndex Returns or sets the color of the outside borders.
Public property OutsideLineStyle Returns or sets the outside border for the specified object.
Public property OutsideLineWidth Returns or sets the line width of the outside border of an object.
Public property Parent Returns the parent object of the specified object.
Public property Shadow Returns or sets a value that indicates if the specified border is formatted as shadowed.
Public property SurroundFooter Returns or sets a value that indicates if a page border encompasses the document footer.
Public property SurroundHeader Returns or sets a value that indicates if a page border encompasses the document header.

Top

See Also

Reference

Borders Interface

Microsoft.Office.Interop.Word Namespace