NevronOpenVision
Nevron.Nov.IO Namespace / NPath Class
Fields Properties Methods


In This Topic
    NPath Class Members
    In This Topic

    The following tables list the members exposed by NPath.

    Protected Constructors
     NameDescription
    Internal Constructor  
    Top
    Public Fields
     NameDescription
    Public FieldInvalid path characters were obtained from System.IO.Path by using the IL Spy disassembler.  
    Public Fieldstatic (Shared in Visual Basic)The Unix file path implementation  
    Public Fieldstatic (Shared in Visual Basic)The Windows file path implementation  
    Top
    Public Properties
     NameDescription
    Public PropertyGets the alternative directory separator character.  
    Public Propertystatic (Shared in Visual Basic)Gets the path for the current file system  
    Public PropertyThe string for current directory.  
    Public PropertyGets the directory separator character.  
    Public PropertyThe char that separates the file name from its extension  
    Public PropertyThe string for parent directory.  
    Public PropertyGets the notation that this path uses.  
    Public PropertyThe char that separates the drive volume from the path  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Combines two paths into one.  
    Public MethodGets the extension of the specified file name without the dot, for example: "txt", "rtf", "docx", etc. If the given file name does not have an extension, String.Empty is returned.  
    Public MethodGets only the file name and the extension of the given path. Also works for directories. For example, if the path is "C:\Documents\MyFile.txt", this method returns "MyFile.txt". If the path it "C:\Documents", this method returns "Documents".  
    Public MethodGets only the file name of the given full file path without the file extension. For example, if the path is "C:\Documents\MyFile.txt", this method returns "MyFile".  
    Public MethodReturns the absolute path for the specified path string using the current directory if the given path string is relative.  
    Public MethodGets the name of the parent folder of the given path. For example, if the path is "C:\Documents\MyFile.txt", this method returns "Documents".  
    Public MethodGets the path to the parent folder of the given path. For example, if the path is "C:\Documents\MyFile.txt", this method returns "C:\Documents\".  
    Public MethodGets the root directory information of the specified path (e.g. "C:\").  
    Public MethodChecks whether the specified path string contains a root, for example "C:\Documents\MyFile.txt" contains a root - "C:\" and an Unix (Mac OS) path "/Users/John/Documents/MyFile.txt" contains a root "/".  
    Public MethodJoins the specified path steps into a single path string.  
    Public MethodGets a relative path leading from the first path (fromPath) to the second one (toPath). For example, if you pass "C:\Documents\Mark" as fromPath and "C:\Documents\Jane" as toPath, the resulting relative path will be "..\Jane".  
    Public MethodNormalizes the given path by resolving all "." and ".." path segments. The directory separator character for the current platform is used, i.e. '\' for Windows and '/' for Mac. For example, normalizing "C:\Documents\..\MyFile.txt" will result in "C:\MyFile.txt".  
    Public MethodGets the steps in this path. Also retrieves whether the path is rooted.  
    Top
    Protected Methods
     NameDescription
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Top
    See Also