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

WebNavigationBarSets.AddSet Method (Publisher)

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

Adds a new WebNavigationBarSet object representing a Web navigation bar set to the specified WebNavigationBarSets collection. .

Syntax

expression. AddSet( Name, Design, AutoUpdate)

_expression_A variable that represents a WebNavigationBarSets object.

Parameters

NameRequired/OptionalData TypeDescription
NameRequiredStringThe name of the Web navigation bar to be added. This parameter must be unique.
DesignOptionalPbWizardNavBarDesignSpecifies the navigation bar design scheme.
AutoUpdateOptionalBooleanTrue if all pages with the AddHyperlinkToWebNavBar property set to Trueare added as links to the navigation bar and the navigation bar is kept updated.

Return Value

WebNavigationBarSet

Remarks

The Name parameter must be unique to avoid a run time error.

Example

The following example adds a WebNavigationBarSet object to the WebNavigationBarSets collection of the active document then sets some properties.

Dim objWebNavBarSet As WebNavigationBarSet 

Set objWebNavBarSet = ActiveDocument.WebNavigationBarSets.AddSet( _ 
 Name:="WebNavBarSet1", _ 
 Design:=pbnbDesignAmbient, _ 
 AutoUpdate:=True) 

With objWebNavBarSet 
 .AddToEveryPage Left:=50, Top:=10 
 .ButtonStyle = pbnbDesignTopLine 
 .ChangeOrientation pbNavBarOrientHorizontal 
End With
© 2018 Microsoft