/// <summary> /// Uncollapses the section. /// This causes the Start and End properties to be set to null! /// Does nothing if the section is already uncollapsed. /// </summary> public void Uncollapse() { if (start == null) return; heightTree.Uncollapse(this); heightTree.CheckProperties(); start = null; end = null; }
/// <summary> /// Uncollapses the section. /// This causes the Start and End properties to be set to null! /// Does nothing if the section is already uncollapsed. /// </summary> public void Uncollapse() { if (start == null) { return; } heightTree.Uncollapse(this); #if DEBUG heightTree.CheckProperties(); #endif start = null; end = null; }
/// <summary> /// Uncollapses the section. /// This causes the Start and End properties to be set to null! /// Runtime: O(log(n)) /// </summary> /// <exception cref="InvalidOperationException"> /// The section is already uncollapsed, or the text containing the section was deleted. /// </exception> public void Uncollapse() { if (start == null) { throw new InvalidOperationException(); } heightTree.Uncollapse(this); #if DEBUG heightTree.CheckProperties(); #endif start = end = null; isCollapsed = false; NotifyPropertyChanged("Start"); NotifyPropertyChanged("End"); NotifyPropertyChanged("IsCollapsed"); }
/// <summary> /// Uncollapses the section. /// This causes the Start and End properties to be set to null! /// Does nothing if the section is already uncollapsed. /// </summary> public void Uncollapse() { if (start == null) { return; } if (!heightTree.IsDisposed) { heightTree.Uncollapse(this); #if DEBUG heightTree.CheckProperties(); #endif } start = null; end = null; }