[]
        
(Showing Draft Content)

C1.WPF.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)
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.