public void Save(TextDocument textDocument) { m_textDocument = textDocument; m_bookMarkStorage.Clear(); EditPoint hEP = m_textDocument.StartPoint.CreateEditPoint(); while (hEP.NextBookmark()) { if (m_bookMarkStorage.Contains(hEP.Line)) { break; } m_bookMarkStorage.Add(hEP.Line); } }