Class NavigationTreeNodeViewModelExtensions
- Namespace
- Dynamicweb.Frontend.Navigation
- Assembly
- Dynamicweb.dll
Extension methods for NavigationTreeNodeViewModel.
public static class NavigationTreeNodeViewModelExtensions
- Inheritance
-
NavigationTreeNodeViewModelExtensions
- Inherited Members
Methods
GetPageItem(NavigationTreeNodeViewModel)
Gets the page item associated with the navigation tree node.
public static ItemViewModel? GetPageItem(this NavigationTreeNodeViewModel node)
Parameters
nodeNavigationTreeNodeViewModelThe navigation tree node.
Returns
- ItemViewModel
The page item associated with the node, or
nullif the node is null, the page is not found, or the page item is null.
GetPagePropertyItem(NavigationTreeNodeViewModel)
Gets the page property item associated with the navigation tree node.
public static ItemViewModel? GetPagePropertyItem(this NavigationTreeNodeViewModel node)
Parameters
nodeNavigationTreeNodeViewModelThe navigation tree node.
Returns
- ItemViewModel
The page property item associated with the node, or
nullif the node is null, the page is not found, or the page property item is null.
IsEcommerceGroup(NavigationTreeNodeViewModel)
Determines whether the navigation tree node represents an ecommerce group.
public static bool IsEcommerceGroup(this NavigationTreeNodeViewModel node)
Parameters
nodeNavigationTreeNodeViewModelThe navigation tree node.
Returns
- bool
trueif the node represents an ecommerce group; otherwise,false.
TryGetIconFile(NavigationTreeNodeViewModel, out ImageFileViewModel?)
Tries to get the icon file associated with the navigation tree node.
public static bool TryGetIconFile(this NavigationTreeNodeViewModel node, out ImageFileViewModel? iconFile)
Parameters
nodeNavigationTreeNodeViewModelThe navigation tree node.
iconFileImageFileViewModelWhen this method returns, contains the ImageFileViewModel value, if it exists, otherwise
null.
Returns
- bool
trueificonFileis not null, otherwisefalse.
TryGetImageFile(NavigationTreeNodeViewModel, out ImageFileViewModel?)
Tries to get the image file associated with the navigation tree node.
public static bool TryGetImageFile(this NavigationTreeNodeViewModel node, out ImageFileViewModel? imageFile)
Parameters
nodeNavigationTreeNodeViewModelThe navigation tree node.
imageFileImageFileViewModelWhen this method returns, contains the ImageFileViewModel value, if it exists, otherwise
null.
Returns
- bool
trueifimageFileis not null, otherwisefalse.