Table of Contents

Class Folder

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

Folder project item.

public class Folder : PropertyChangedBase, INotifyPropertyChangedEx, ICompositeProjectItem, IProjectItem, INotifyPropertyChanged, ICanBeRenamed, ICanBeDeleted, ICanAddProjectItem, IIsPartOfFileSystem, IByteSerializable
Inheritance
PropertyChangedBase
Folder
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Constructors

Folder(string)

Initializes a new instance of the Folder class.

public Folder(string name)

Parameters

name string

Name for folder.

Properties

Icon

Gets the icon.

public Uri Icon { get; }

Property Value

Uri

Items

Gets the sub items.

public IProjectItemCollection Items { get; }

Property Value

IProjectItemCollection

Name

Gets the folder name.

public string Name { get; }

Property Value

string

Parent

Gets or sets the parent project item.

[DoNotTrack]
public ICompositeProjectItem Parent { get; set; }

Property Value

ICompositeProjectItem

Path

Gets the full path to the folder on the file system.

public string Path { get; }

Property Value

string

Methods

Add(IProjectItem)

Adds an item to the Items.

public void Add(IProjectItem item)

Parameters

item IProjectItem

The new project item.

Exceptions

ArgumentNullException

Thrown when item is null.

Delete()

Deletes the project item at the path.

public void Delete()

FromBytes(byte[])

Populates an object from a byte[].

public void FromBytes(byte[] data)

Parameters

data byte[]

byte[] representation of the object.

Exceptions

NotImplementedException

Always thrown.

Rename(string)

Renames the folder.

public void Rename(string name)

Parameters

name string

New name for the folder.

ToBytes()

Retrieves a byte[] representation of the name and sub items ToBytes().

public byte[] ToBytes()

Returns

byte[]

Bytes representing the instance.