NavigationNodes Collection
SharePoint Designer Developer Reference |
A collection of NavigationNode objects within the navigational structure of a Web site.
Remarks
Each NavigationNode object represents a pointer to a page on a Web site. The NavigationNode object is a member of the NavigationNodes collection.
Use the NavigationNode property to return the NavigationNode object for a WebFile object. For more information on returning the collection of child nodes within the navigational structure of a Web site, see the Children property. The following example builds a list of the labels that are associated with each NavigationNode object in the NavigationNodes collection. The procedure exits when it reaches the end of the navigational structure.
Visual Basic for Applications |
---|
|
Use Children(index), where index is the index number of an item in the collection of child nodes, to return a single NavigationNode object. The following example returns the first NavigationNode object in the collection—which is the home page.
Visual Basic for Applications |
---|
|
Use the Add method to add a NavigationNode object to the NavigationNodes collection. The following example adds a node to the rightmost position in the current navigational structure.
Visual Basic for Applications |
---|
|
Note
After you finish modifying your navigational structure, you must apply the changes using the ApplyNavigationStructure method before the navigational structure is updated in Office SharePoint Designer.
See Also