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.3179.0 (4.8.3179.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
Public methodAbsoluteDocumentPath(IEnumerableString)Initializes a new instance of the AbsoluteDocumentPath class
Top
Properties
 NameDescription
Public propertyCount 
Public propertyItem 
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) 
Public methodAppend(String) 
Public methodClone 
Public methodEquals
(Overrides ObjectEquals(Object))
Public methodStatic memberGetAbsolutePath Get the absolute path of the node
C#
node
starting from the root.
Public methodGetHashCode
(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) 
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
C#
node
starting either from the root, or from the object in the depth
C#
maxDepth
, whatever is reached first.
Public methodStatic memberGetPathString 
Public methodStatic memberGetRootNode Get the root node of the node
C#
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
C#
node
that implements the given type
C#
type.
.
Public methodStatic memberGetRootNodeImplementingT(IDocumentLeafNode) Get the first parent node of the node
C#
node
that implements the given type
C#
type.
.
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 
Public methodSubPath 
Public methodToString
(Overrides ObjectToString)
Public methodStatic memberTryGetAbsolutePath Get the absolute path of the node
C#
node
starting from the root, or null if that fails.
Top
Fields
 NameDescription
Public fieldStatic memberDocumentPathOfRootNode 
Top
See Also