返回 WebFile 对象导航结构中的当前 NavigationNode 对象。
如果在当前基于 FrontPage 的站点的导航结构中找不到 NavigationNode,NavigationNode 属性会返回 Null。
本示例使用 NavigationNode 属性返回与导航节点相关联的文件名。
Private Sub GetNavNode()
Dim myWeb As WebEx
Dim myNavNode As NavigationNode
Dim myNavNodeLabel As String
Set myWeb = ActiveWeb
Set myNavNode = _
myWeb.RootNavigationNode.Files(0).NavigationNode
With myNavNode
myNavNodeLabel = .Label
End With
End Sub