Class Folder
Folder project item.
public class Folder : PropertyChangedBase, INotifyPropertyChangedEx, ICompositeProjectItem, IProjectItem, INotifyPropertyChanged, ICanBeRenamed, ICanBeDeleted, ICanAddProjectItem, IIsPartOfFileSystem, IByteSerializable
- Inheritance
-
PropertyChangedBaseFolder
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
- Extension Methods
Constructors
Folder(string)
Initializes a new instance of the Folder class.
public Folder(string name)
Parameters
name
stringName for folder.
Properties
Icon
Gets the icon.
public Uri Icon { get; }
Property Value
Items
Gets the sub items.
public IProjectItemCollection Items { get; }
Property Value
Name
Gets the folder name.
public string Name { get; }
Property Value
Parent
Gets or sets the parent project item.
[DoNotTrack]
public ICompositeProjectItem Parent { get; set; }
Property Value
Path
Gets the full path to the folder on the file system.
public string Path { get; }
Property Value
Methods
Add(IProjectItem)
Adds an item to the Items.
public void Add(IProjectItem item)
Parameters
item
IProjectItemThe 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
Exceptions
- NotImplementedException
Always thrown.
Rename(string)
Renames the folder.
public void Rename(string name)
Parameters
name
stringNew name for the folder.
ToBytes()
public byte[] ToBytes()
Returns
- byte[]
Bytes representing the instance.