Click or drag to resize
Sandcastle Help File BuilderFilePath Class
This class is used to represent a file path. Support is included for treating the path as fixed or relative and for expanding environment variables in the path name.
Inheritance Hierarchy

Namespace: SandcastleBuilder.Utils
Assembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2014.11.22.0
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(FilePathTypeConverter))]
public class FilePath : ICloneable

The FilePath type exposes the following members.

Constructors
  NameDescription
Public methodFilePath(IBasePathProvider)
Default constructor. The file path is undefined.
Public methodFilePath(String, IBasePathProvider)
Constructor. Assign the specified path.
Public methodFilePath(String, Boolean, IBasePathProvider)
Constructor. Assign the specified path and fixed setting.
Top
Methods
  NameDescription
Public methodStatic memberCode exampleAbsoluteToRelativePath
This helper method can be used to convert an absolute path to one that is relative to the given base path.
Public methodClone
This returns a clone of the object
Public methodEquals
This is overridden to allow proper comparison of file path objects.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetFullPath
This returns the fully qualified path for the specified path. This version allows wildcards in the filename part if present.
Public methodGetHashCode
Get a hash code for the file path object
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnPersistablePathChanged
This raises the PersistablePathChanged event
Protected methodOnPersistablePathChanging
This raises the PersistablePathChanging event
Public methodStatic memberCode exampleRelativeToAbsolutePath
This helper method can be used to convert a relative path to an absolute path based on the given base path.
Public methodToString
Convert the file path to a string
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Overload for equal operator.
Public operatorStatic memberCode example(FilePath to String)
This is used to handle an implicit conversion from a FilePath object to a string
Public operatorStatic memberInequality
Overload for not equal operator.
Top
Properties
  NameDescription
Public propertyBasePath
This returns the base path for the object
Public propertyBasePathProvider
This is used to get the base path provider for the object.
Public propertyExists
This read-only property can be used to determine whether or not the file path exists
Public propertyExpandedPath
This read-only property is used to display the fully qualified path with environment variable expansions in the designer.
Public propertyIsFixedPath
This is used to indicate whether or not the path will be treated as a relative or fixed path when converted retrieved via the PersistablePath property.
Public propertyCode examplePath
This is used to get or set the path to use.
Public propertyPersistablePath
This is used to retrieve the file path in a format suitable for persisting to storage based on the current settings.
Top
Events
  NameDescription
Public eventPersistablePathChanged
This event is raised when the persistable path changes
Public eventPersistablePathChanging
This event is raised when the persistable path is about to be changed
Top
See Also