Table of Contents

Class PathRoute

Namespace
Hi.Common.PathUtils
Assembly
HiGeom.dll

Represents a path with both directory and file components, supporting relative and absolute path operations.

public class PathRoute
Inheritance
PathRoute
Inherited Members
Extension Methods

Constructors

PathRoute()

Initializes a new instance of the PathRoute class.

public PathRoute()

PathRoute(BaseAndSubDirectory)

Initializes a new instance of the PathRoute class with the specified directory route.

public PathRoute(BaseAndSubDirectory directoryRoute)

Parameters

directoryRoute BaseAndSubDirectory

The directory route to use

PathRoute(PathRoute)

Copy constructor. Creates a new instance with a copy of the DirectoryRoute.

public PathRoute(PathRoute src)

Parameters

src PathRoute

Source PathRoute to copy from

Properties

AbsolutePath

Gets or sets the absolute path combining the base directory, sub-directory, and file name. When setting, updates the directory route and file name components.

public string AbsolutePath { get; set; }

Property Value

string

DirectoryRoute

Gets or sets the directory route containing base and sub-directory information.

public BaseAndSubDirectory DirectoryRoute { get; set; }

Property Value

BaseAndSubDirectory

FileName

Gets or sets the file name component of the path. The name should not be assigned if no file is associated (i.e., when only a folder is specified).

public string FileName { get; set; }

Property Value

string

RelativePath

Gets or sets the relative path combining the sub-directory and file name. When setting, updates the absolute path based on the base directory.

public string RelativePath { get; set; }

Property Value

string