Table of Contents

Interface IFileProjectItemFactory

Namespace
Loehnert.Lisrt.Scripting.Project.ProjectItem.Interfaces
Assembly
Loehnert.Lisrt.Scripting.dll

Factory for an IProjectItem that can be created from a file.

public interface IFileProjectItemFactory

Properties

Description

Gets the localized description.

string Description { get; }

Property Value

string

FileExtension

Gets the file extension. E. g. 'py' or 'txt'.

string FileExtension { get; }

Property Value

string

Remarks

Note that we use the extension here without a dot ('.').

Methods

CanAddToItem(IProjectItem)

Checks if the item can be added to a parent item.

bool CanAddToItem(IProjectItem item)

Parameters

item IProjectItem

Parent item.

Returns

bool

A value indicating whether a new item can be added to item.

CanGetProjectItem(string)

Checks if a project item can be get for a file or folder.

bool CanGetProjectItem(string path)

Parameters

path string

Path to a file or folder.

Returns

bool

A value indicating whether a new item can be get for the path.

GetProjectItem(string)

Gets the project item.

IProjectItem GetProjectItem(string path)

Parameters

path string

Path to the project item.

Returns

IProjectItem

A project item.