Click or drag to resize
Location Methods

The Location type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a deep clone of this object.
Public methodEquals
Returns true if this location refers to the same position as the other location.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns the hash code of the levels in this location.
(Overrides ObjectGetHashCode.)
Public methodMoveFirstChild
Changes the location to refer to the position just before the first child node of the item at the current location. If no child node is available (i.e. the current location does not refer to a node that is an IAbstractMarkupDataContainer), the location is not changed, and this method returns false. Note that if the item at the current location is a container, but it has no content, the location is still advanced to a location at the index 0 inside the collection, as it is possible to insert new content there.
Public methodMoveLastChild
Changes the location to just behind the last child node of the item at the current location. If no child node is available (i.e. the current location does not refer to a node that is an IAbstractMarkupDataContainer), the location is not changed, and this method returns false. Note that if the item at the current location is a container, but it has no content, the location is still advanced to a location at the index 0 inside the collection, as it is possible to insert new content there.
Public methodMoveNext
Advances to the next possible location. This will move to the next available position according to the following priority list:
  • First child
  • Next Sibling
  • Next Parent Sibling
If no such location is available (i.e. the location is currently behind the last item in the top level), the location is not changed, and the method returns false. If the location is invalid, the behavior is undefined and exceptions may be thrown.
Public methodMoveNextSibling
Advance the location to the next sibling position in the current bottom layer. If no next sibling position is available (i.e. the location is already behind the last item in the parent collection), the location is not changed, and this method returns false.
Public methodMoveParent
Changes the location to refer to the position just before the parent of the current bottom level location. If no parent location is available (i.e. the location is already in the top layer), the location is not changed, and this method returns false.
Public methodMovePrevious
Moves the location to the preceding available position according to the following priority list:
  • Previous Sibling Last Child
  • Previous Sibling
  • Parent
If no parent is available (i.e. location is before the first item in the top level), the location is not changed, and the method returns false.
Public methodMovePreviousSibling
Moves the location to the preceding sibling position in the current bottom layer. If no previous sibling location is available (i.e. the current location is already at the start of the parent collection), the location is not changed, and this method returns false.
Public methodToString
Overridden to provide more useful information while debugging
(Overrides ObjectToString.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments