Table of Contents

Class AbsoluteToRelativePathBase

Namespace
Loehnert.Lisrt.Framework.Path
Assembly
Loehnert.Lisrt.dll

Base for a path with a relative path inside.

public abstract class AbsoluteToRelativePathBase : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IPath, IHasKey
Inheritance
PropertyChangedBase
AbsoluteToRelativePathBase
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Properties

BasePath

Gets the path base for the RelativePath.

protected virtual string BasePath { get; }

Property Value

string

Description

Gets the translatable description.

public abstract ITranslation Description { get; }

Property Value

ITranslation

Key

Gets the unique key.

public abstract string Key { get; }

Property Value

string

Path

Gets or sets the absolute path as relative from or to RelativePath.

public string Path { get; set; }

Property Value

string

RelativePath

Gets or sets the relative path. Will be set in the Path setter. When null: Path returns Empty When Empty: Path returns BasePath When level is lower than the BasePath, RelativePath is set to absolute path.

protected abstract string RelativePath { get; set; }

Property Value

string

Methods

Save()

Saves the path e. g. to a file.

public abstract void Save()