C# Class OneNoteConversionTool.Utility

Class that contains a bunch of helper methods for ConversionTool
Show file Open project: OneNoteDev/OneNoteConversionTool

Public Properties

Property Type Description
EpubSupportedExtenssions string[]
InDesignSupportedExtenssions string[]
PdfSupportedExtenssions string[]
PowerPointSupportedExtenssions string[]
WordSupportedExtenssions string[]

Public Methods

Method Description
CreateDirectory ( string pathDir ) : string

Helper method to create a directory

DeleteDirectory ( string targetDir ) : bool

Helper method to delete directory and its contents recursively

NewFilePath ( string dir, string fileName, string extension ) : string

Helper method to get a path of a new file in a given directory Note: this method doesn't create the file

NewFolderPath ( string dir, string folderName ) : string

Helper method to get a path of a new folder in a given directory Note: this method doesn't create the folder

UnescapeXml ( string docContent ) : string

Changes the escape sequence characters with the equivalant characters.

Method Details

CreateDirectory() public static method

Helper method to create a directory
public static CreateDirectory ( string pathDir ) : string
pathDir string
return string

DeleteDirectory() public static method

Helper method to delete directory and its contents recursively
public static DeleteDirectory ( string targetDir ) : bool
targetDir string
return bool

NewFilePath() public static method

Helper method to get a path of a new file in a given directory Note: this method doesn't create the file
public static NewFilePath ( string dir, string fileName, string extension ) : string
dir string Directory where the file will be created
fileName string Name of the file
extension string Extension of the file
return string

NewFolderPath() public static method

Helper method to get a path of a new folder in a given directory Note: this method doesn't create the folder
public static NewFolderPath ( string dir, string folderName ) : string
dir string Directory where the folder will be created
folderName string Name of the folder
return string

UnescapeXml() public static method

Changes the escape sequence characters with the equivalant characters.
public static UnescapeXml ( string docContent ) : string
docContent string Document content.
return string

Property Details

EpubSupportedExtenssions public static property

public static string[] EpubSupportedExtenssions
return string[]

InDesignSupportedExtenssions public static property

public static string[] InDesignSupportedExtenssions
return string[]

PdfSupportedExtenssions public static property

public static string[] PdfSupportedExtenssions
return string[]

PowerPointSupportedExtenssions public static property

public static string[] PowerPointSupportedExtenssions
return string[]

WordSupportedExtenssions public static property

public static string[] WordSupportedExtenssions
return string[]