BorderArts Property

Microsoft Publisher Visual Basic

BorderArts Property

Returns a BorderArts collection that represents the BorderArt types available for use in the specified publication. Read-only.

expression.BorderArts()

expression    Required. An expression that returns a Document object.

Remarks

BorderArt are picture borders that can be applied to text boxes, picture frames, or rectangles.

The BorderArts collection includes any custom BorderArt types created by the user for the specified publication.

Example

The following example returns the BorderArts collection and lists the names of all the BorderArt types available for use in the active publication.

    Sub ListBorderArt()
Dim bdaTemp As BorderArts
Dim bdaLoop As BorderArt

Set bdaTemp = ActiveDocument.BorderArts

For Each bdaLoop In bdaTemp
    Debug.Print "The name of this BorderArt is " & bdaLoop.Name
Next bdaLoop
End Sub