Table of contents
Collapse the table of content
Expand the table of content

WebNavigationBarSet.Links Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns a WebNavigationBarHyperlinks collection containing all of the hyperlinks in the specified Web navigation bar set. Read/write.


expression. Links

_expression_A variable that represents a WebNavigationBarSet object.

Return Value



Use the Links property to return a WebNavigationBarHyperlinks property. This example returns the Web navigation bar hyperlinks of the first Web navigation bar set of the active document.


The following example adds a new Web navigation bar set to the active document, adds a hyperlink to the navigation bar, and then adds the navigation bar to every page of the publication that has the AddHyperlinkToWebNavbar property set to True or the Page.WebPageOptions.IncludePageOnNewWebNavigationBars property set to True.

With ActiveDocument.WebNavigationBarSets.AddSet(Name:="WebNavigationBarSet1") 
 With .Links 
 .Add Address:="", TextToDisplay:="Microsoft", Index:=1 
 End With 
 .AddToEveryPage Left:=10, Top:=10 
End With
© 2018 Microsoft