Share via


AllNavigationNodes Property

Returns a NavigationNodes collection object that represents all of the navigation nodes in the specified Web site.

Note  Navigation nodes are used to display a graphic representation of the current Web site in Navigation view.

expression.AllNavigationNodes

*expression   * Required. An expression that returns a WebEx object.

Example

The following example returns a reference to the NavigationNodes collection and displays the file name of the first object in the collection and the title of the Web site in which it exists.

Sub AllNavigationNodes()
    Dim objApp As FrontPage.Application
    Dim objNavNode As NavigationNode
    Dim objNavNodes As NavigationNodes

    Set objApp = FrontPage.Application

    'Create a reference to the NavigationNodes collection.
    Set objNavNodes = objApp.ActiveWeb.AllNavigationNodes

    'Return a reference to the first node in the collection.
    Set objNavNode = objNavNodes.Item(0)

    'Display the file name and the Web of the first
    'navigation node in the collection
    MsgBox "The URL of this file is " & objNavNode.Url & _
        vbCr & ". It is found in the " _
        & objNavNode.Web.Title & " Web site."

End Sub

Applies to | WebEx Object

See Also | AllFiles Property | AllFolders Property