using System; using System.Collections.Generic; using System.Text; using VEPROMS.CSLA.Library; namespace Volian.Controls.Library { public class VlnSpellCheck { private StepItem _MyStepItem; public StepItem MyStepItem { get { return _MyStepItem; } set { _MyStepItem = value; } } public VlnSpellCheck() { } public void DoSpellCheck() { while (MyStepItem.MyStepRTB.SpellCheckNext()) { ItemInfo next = MyStepItem.MyItemInfo.SearchNext; if (next.IsSection) return; // spell check only current section MyStepItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next); } MyStepItem.MyStepRTB.Focus(); } } }