Click or drag to resize

AbsoluteDocumentPath Class

DocumentPath holds a path to a document. This path reflects the internal organization of the class instances in Altaxo. Do not mix this concept with the concept of the folder in which a project item virtually exists (see ProjectFolder).
Inheritance Hierarchy
SystemObject
  Altaxo.MainAbsoluteDocumentPath

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[SerializableAttribute]
public sealed class AbsoluteDocumentPath : ICloneable

The AbsoluteDocumentPath type exposes the following members.

Constructors
 NameDescription
Public methodAbsoluteDocumentPath(AbsoluteDocumentPath) Initializes a new instance of the AbsoluteDocumentPath class by copying another instance.
Public methodAbsoluteDocumentPath(IEnumerableString) Initializes a new instance of the AbsoluteDocumentPath class from an enumeration of path parts.
Top
Properties
 NameDescription
Public propertyCount Gets the number of path parts.
Public propertyItem Gets the path part at the specified index.
Public propertyLastPart Gets the last part, which is often the name of the object.
Public propertyLastPartOrDefault Gets the last part, which is often the name of the object.
Public propertyParentPath Gets the parent path of the current path. The parent path contains all parts except for the last part.
Top
Methods
 NameDescription
Public methodAppend(AbsoluteDocumentPath) Appends another absolute document path.
Public methodAppend(String) Appends a single path part.
Public methodClone Creates a copy of this path.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodStatic memberFromPathString Creates an absolute document path from its string representation.
Public methodStatic memberGetAbsolutePath Get the absolute path of the node node starting from the root.
Public methodGetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Public methodStatic memberGetNodeOrLeastResolveableNode Gets the node that is designated by the provided path or the least resolveable node.
Public methodStatic memberGetObject(AbsoluteDocumentPath, IDocumentLeafNode) Resolves the specified path starting from the root node of startnode.
Public methodStatic memberGetObject(AbsoluteDocumentPath, IDocumentLeafNode, IDocumentNode) Resolves the path by first using startnode as starting point. If that failed, try using documentRoot as starting point.
Public methodStatic memberGetPath Get the absolute path of the node node starting either from the root, or from the object in the depth maxDepth, whatever is reached first.
Public methodStatic memberGetPathString Gets the string representation of the path of the specified node.
Public methodStatic memberGetRootNode Get the root node of the node node. The root node is defined as last node in the hierarchie that either has not implemented the IDocumentLeafNode interface or has no parent.
Public methodStatic memberGetRootNodeImplementing(IDocumentLeafNode, Type) Get the first parent node of the node node that implements the given type type..
Public methodStatic memberGetRootNodeImplementingT(IDocumentLeafNode) Gets the first parent node of node that implements T.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodReplaceLastPartReplaces the last part of the AbsoluteDocumentPath, which is often the name of the object.
Public methodReplacePathParts Replaces parts of the part by another part.
Public methodStartsWith Determines whether this path starts with the specified path.
Public methodSubPath Returns a subpath.
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Public methodStatic memberTryGetAbsolutePath Get the absolute path of the node node starting from the root, or null if that fails.
Top
Fields
 NameDescription
Public fieldStatic memberDocumentPathOfRootNode The document path of the root node.
Top
See Also