BorderArts Collection



A collection of all BorderArt available for use in the specified publication. BorderArt is predefined picture borders that can be applied to text boxes, picture frames, or rectangles.
Using the BorderArts Object
Use the Item property of a BorderArts collection to return a specific BorderArt object. The Index argument of the Item property can be the number or name of the BorderArt object.
This example returns the BorderArt "Apples" from the active publication.
Dim bdaTemp As BorderArt
Set bdaTemp = ActiveDocument.BorderArts.Item (Index:="Apples")
Use the Count property to return the number of BorderArt types available in the specified document. The following example displays the number of BorderArt types in the active document.
Sub CountBorderArts()
MsgBox ActiveDocument.BorderArts.Count
End Sub
Remarks
The BorderArts collection includes any custom BorderArt types created by the user for the specified publication.