public void EndCurrentSection() { this._currentSection = null; }
public SectionElement BeginNewSection(bool allowWrap, int indentation, string name) { if (indentation < 0) { throw new ArgumentOutOfRangeException("indentation"); } SectionElement element = new SectionElement(); element.AllowWrap = allowWrap; element.Indentation = indentation; element.SetName(name); this._sections.Add(element); this._currentSection = element; return this._currentSection; }