This documentation is archived and is not being maintained.

Border Interface 

Represents the border of an object.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Public Class orderImplementation
	Implements Border
End Class
Dim orderImplementation1 As New orderImplementation()

public interface Border
public interface Border
public interface Border

Most bordered objects (all except for the Range and Style objects) have a border that’s treated as a single entity, regardless of how many sides it has. The entire border must be returned as a unit. Use the Border property to return the Border object for this kind of object.

Range and Style objects have four discrete borders — left, right, top, and bottom — that can be returned individually or as a group. Use the Borders property of a Range or Style object to return the Borders collection, which contains all four borders and treats the borders as a unit.

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.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: