TopicCollection.Remove Method

Namespace
Kampute.DocToolkit.Collections
Assembly
  • Kampute.DocToolkit.dll

Definition

Removes a top-level topic and all its subtopics from the collection.
public bool Remove(TopicModel topLevelTopic)

Parameters

topLevelTopic TopicModel
The topic to remove.

Returns

bool
true if the topic was successfully removed from the collection; otherwise, false

Exceptions

ArgumentNullException
Thrown when topLevelTopic is null.
ArgumentException
Thrown when topLevelTopic is not a top-level topic.