ignoreSharedBorders Property

       

Returns or sets a Boolean that determines if element borders that are shared by multiple elements will be ignored. Read/write.

expression.ignoreSharedBorders

expression   Required. An expression that returns a DispFPHTMLDocument object.

Example

The following example sets the ignoreSharedBorders property to True if shared borders exist in the current document. If shared borders do not exist in the document, the ignoreSharedBorders property is set to False. Any future elements with shared borders will therefore not be ignored.

Sub IgnoreBorders()
'Ignores shared borders in document if they exist

    Dim objApp As FrontPage.Application
    'If document has shared borders, ignore them
    If objApp.ActiveDocument.hasSharedBorders = True Then
       objApp.ActiveDocument.ignoreSharedBorders = True
    Else
    'Don't ignore shared borders until they occur
    If objApp.ActiveDocument.hasSharedBorders = False Then
       objApp.ActiveDocument.ignoreSharedBorders = False
    End If

End Sub