Class NavigationNodePath
- Namespace
- Dynamicweb.CoreUI.Navigation
- Assembly
- Dynamicweb.CoreUI.dll
- Inheritance
-
Navigation
Node Path
- Implements
- Inherited Members
Constructors
NavigationNodePath()
Constructs an empty path.
NavigationNodePath(IEnumerable<string?>?)
Constructs a new path from the given segments.
Parameters
segments
IEnumerable<string>List of segments that make up the path.
NavigationNodePath(string?)
Constructs a new path from the given path string.
Parameters
path
stringThe path string to construct the Navigation
Node from.Path
Properties
First
Gets the first segment in the path.
Property Value
IsEmpty
Gets a value indicating whether the path is empty.
Equivalent to "Segment
Property Value
Last
Gets the last segment in the path.
Property Value
Path
Gets the path consisting of all segments joined by the path delimiter. Path starts with the delimiter.
Property Value
SegmentCount
Gets the number of segments in the path.
Property Value
Segments
Gets the list of segments in the path.
Property Value
Methods
ElementAtPosition(int)
Gets the element at the given position or null
.
Parameters
position
intThe 1-based position.
Returns
- string
The element at the position if it exists; otherwise
null
.
Equals(NavigationNodePath?)
Indicates whether the current object is equal to another object of the same type.
Parameters
other
NavigationNode Path An object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
NewWithSegment(string?)
Creates a new Navigation
Parameters
segment
stringThe new segment.
Returns
- Navigation
Node Path A new Navigation
Node with the given segment appended.Path
ToString()
Returns a string that represents the current object.
Returns
- string
A string that represents the current object.
ToTrimmedString()
Gets the path without the starting or ending delimiter.
Returns
- string
The trimmed path.