FlexReport for WPF | ComponentOne
C1.WPF.Document.4.6.2 Assembly / C1.WPF.Document Namespace / Utils Class / GetRelativePath Method
The base path for resolving a relative file name.
The relative path to the file.

In This Topic
    GetRelativePath Method (Utils)
    In This Topic
    Returns the relative path, for example: GetRelativePath("c:\temp", "c:\temp\qq\zz.txt") returns "qq\zz.txt".
    Syntax
    'Declaration
     
    Public Shared Function GetRelativePath( _
       ByVal basePath As String, _
       ByVal path As String _
    ) As String
    public static string GetRelativePath( 
       string basePath,
       string path
    )

    Parameters

    basePath
    The base path for resolving a relative file name.
    path
    The relative path to the file.

    Return Value

    The converted relative file path.
    See Also