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

subtopic IMutableTopic
The subtopic to remove.

Returns

bool
true if the subtopic was successfully removed; otherwise, false if the subtopic is not a child of the current topic.

Exceptions

ArgumentNullException
Thrown when subtopic is null.

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.