[]
        
(Showing Draft Content)

C1.Document.Utils.GetRelativePath

GetRelativePath Method

GetRelativePath(string, string)

Returns the relative path, for example: GetRelativePath("c:\temp", "c:\temp\qq\zz.txt") returns "qq\zz.txt".

Declaration
public static string GetRelativePath(string basePath, string path)
Public Shared Function GetRelativePath(basePath As String, path As String) As String
Parameters
Type Name Description
string basePath

The base path for resolving a relative file name.

string path

The relative path to the file.

Returns
Type Description
string

The converted relative file path.