Interface IProjectTemplate
- Namespace
- Loehnert.Lisrt.Scripting.Project.Interfaces
- Assembly
- Loehnert.Lisrt.Scripting.dll
Interface for a IProject template.
public interface IProjectTemplate
Properties
Description
Gets a translated description.
string Description { get; }
Property Value
FileExtension
Gets the file extension without dot.
string FileExtension { get; }
Property Value
Methods
CanLoadProjectFromPath(string)
Checks if a new project can be loaded from the path.
bool CanLoadProjectFromPath(string filePath)
Parameters
filePath
stringPath to the project file.
Returns
- bool
A value indicating whether a new project can be loaded from the path.
GetNewProject(string)
Creates a new IProject.
IProject GetNewProject(string name)
Parameters
name
stringPath to the new file without extension.
Returns
LoadProject(string)
Loads the project from a file.
IProject LoadProject(string filePath)
Parameters
filePath
stringPath to the project file.
Returns
ValidateNewFileName(string, string)
Gets the validation results of the new name of the item.
IEnumerable<ValidationResult> ValidateNewFileName(string newName, string newPath)
Parameters
newName
stringThe name of the file, without extension.
newPath
stringThe path to the file, without the file name.
Returns
- IEnumerable<ValidationResult>
An enumeration of validation results.