Share via


CellRange.Borders Property

Returns a Borders collection that represents the borders and diagonal lines for the specified Cell object or CellRange collection. Read-only.

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

Syntax

'Declaration
ReadOnly Property Borders As Borders
    Get
'Usage
Dim instance As CellRange
Dim value As Borders

value = instance.Borders
Borders Borders { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.Borders
Borders

Examples

This example sets the thickness of the left border for the first cell in the second row of the selected table to three points.

ActiveWindow.Selection.ShapeRange.Table.Rows(2) _

    .Cells(1).Borders.Item(ppBorderLeft).Weight = 3

See Also

Reference

CellRange Interface

CellRange Members

Microsoft.Office.Interop.PowerPoint Namespace