Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
Returns a border in a range or selection.
Syntax
expression.Item (Index)
expression Required. A variable that represents a 'Borders' collection.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Index | Required | WdBorderType | The border to be returned. |
Return value
Border
Example
This example inserts a double border above the first paragraph in the active document.
Sub BorderItem()
ActiveDocument.Paragraphs(1).Borders.Item(wdBorderTop) _
.LineStyle = wdLineStyleDouble
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.