WebNavigationBarSet.ChangeOrientation method (Publisher)
Sets a PbNavBarOrientation constant that represents the alignment of the navigation bar: vertical or horizontal.
Syntax
expression.ChangeOrientation (Orientation)
expression A variable that represents a WebNavigationBarSet object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Orientation | Required | PbNavBarOrientation | Can be pbNavBarOrientHorizontal or pbNavBarOrientVertical. |
Example
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.