TopicSource.RemoveSubtopic Method
- Namespace
- Kampute.DocToolkit.Topics.Abstracts
- Assembly
- Kampute.DocToolkit.dll
Definition
Removes a subtopic from the current topic.
public bool RemoveSubtopic(IMutableTopic subtopic)Parameters
subtopicIMutableTopic- The subtopic to remove.
Returns
- bool
trueif the subtopic was successfully removed; otherwise,falseif the subtopic is not a child of the current topic.
Exceptions
- ArgumentNullException
- Thrown when
subtopicisnull.
Remarks
This method removes a subtopic from the current topic, if it is a child of the topic. The removed subtopic will become a top-level topic with no parent.
