39 lines
671 B
C#
39 lines
671 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using VEPROMS.CSLA.Library;
|
|
|
|
namespace Volian.Controls.Library
|
|
{
|
|
public class VlnSpellCheck
|
|
{
|
|
private RTBItem _MyRTBItem;
|
|
public RTBItem MyRTBItem
|
|
{
|
|
get { return _MyRTBItem; }
|
|
set
|
|
{
|
|
_MyRTBItem = value;
|
|
}
|
|
}
|
|
|
|
|
|
public VlnSpellCheck()
|
|
{
|
|
}
|
|
|
|
public void DoSpellCheck()
|
|
{
|
|
while (MyRTBItem.MyStepRTB.SpellCheckNext())
|
|
{
|
|
ItemInfo next = MyRTBItem.MyItemInfo.SearchNext;
|
|
if (next.IsSection)
|
|
return; // spell check only current section
|
|
MyRTBItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
|
|
}
|
|
MyRTBItem.MyStepRTB.Focus();
|
|
}
|
|
|
|
}
|
|
}
|