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

WebNavigationBarSet.ChangeOrientation Method (Publisher)

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

Sets a PbNavBarOrientation constant that represents the alignment of the navigation bar; vertical or horizontal.


expression. ChangeOrientation( Orientation)

_expression_A variable that represents a WebNavigationBarSet object.


NameRequired/OptionalData TypeDescription


The Orientation parameter can be one of the following PbNavBarOrientation constants declared in the Microsoft Publisher type library.

| pbNavBarOrientHorizontal| | pbNavBarOrientVertical|


The following example sets an object variable to the first Web navigation bar set in the active document, adds it to every page, changes the orientation to horizontal, sets the horizontal alignment to center, and then sets the horizontal button count to 4.

Dim objWebNav As WebNavigationBarSet 
Set objWebNav = ActiveDocument.WebNavigationBarSets(1) 
With objWebNav 
 .AddToEveryPage Left:=10, Top:=10 
 .ChangeOrientation pbNavBarOrientHorizontal 
 .HorizontalAlignment = pbnbAlignCenter 
 .HorizontalButtonCount = 4 
End With
© 2018 Microsoft