2010-04-19 14:00:22 +00:00

39 lines
681 B
C#

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();
}
}
}