ContentSet

References
public sealed class ContentSet
A collection of content to be displayed in a content browser.

Constructors

ContentSet

#
public ContentSet(params string[] sections)
sections (params string[])

Properties

Items

#
public IEnumerable<Content> Items { get; }

Methods

Add

#
public void Add(Content content)
content (Content)

Add

#
public void Add(Nomen nomen, IIcon icon, object tag = null)
nomen (Nomen)
icon (IIcon)
tag (object = null)

Clear

#
public void Clear()
Remove every item from every section. Raises ItemsChanged once if anything was removed.

Replace

#
public void Replace(IEnumerable<Content> items)
Atomically replace the entire set of items. Items with an unknown chapter are silently dropped. Raises ItemsChanged exactly once at the end, regardless of how many items were added or removed.
items (IEnumerable<Content>)

Events

ItemsChanged

#
public event EventHandler ItemsChanged