예제 #1
0
		/// <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;
		}
예제 #2
0
        /// <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;
        }
예제 #3
0
        /// <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");
        }
예제 #4
0
        /// <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;
        }