Borders Interface

A collection of four Border objects that represent the four borders of a Range or Style object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<GuidAttribute("00020855-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface Borders _
    Inherits IEnumerable
'Usage
Dim instance As Borders
[GuidAttribute("00020855-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface Borders : IEnumerable

Remarks

Use the Borders property of a Range or Style object to return the Borders collection, which contains all four borders.

Use Borders(index), where index identifies the border, to return a single Border object.

Index can be one of the following XlBordersIndex constants: xlDiagonalDown, xlDiagonalUp, xlEdgeBottom, xlEdgeLeft, xlEdgeRight, xlEdgeTop, xlInsideHorizontal, or xlInsideVertical.

See Also

Reference

Borders Members

Microsoft.Office.Interop.Excel Namespace