バージョン

Offset プロパティ

スペル チェック済みのテキスト部分が開始する Text のオフセットを取得します。
シンタックス
'宣言
 
Public ReadOnly Property Offset As Integer
public int Offset {get;}
使用例
Imports Infragistics.Win.UltraWinSpellChecker

Private Sub spellChecker_SpellChecking(ByVal sender As System.Object, ByVal e As SpellCheckingEventArgs) Handles spellChecker.SpellChecking
	Debug.WriteLine("The following text has been spell checked: """ + e.Text.Substring(e.Offset, e.Length) + """")
End Sub

Private Sub spellChecker_SpellChecked(ByVal sender As System.Object, ByVal e As SpellCheckedEventArgs) Handles spellChecker.SpellChecked
	Debug.WriteLine( _
		"The following text has been spell checked: """ + _
		e.Text.Substring(e.Offset, e.Length) + _
		""" and " + e.Errors.Count.ToString() + _
		" errors were found.")
End Sub
using System.Diagnostics;
using System.Windows.Forms;
using Infragistics.Win.UltraWinSpellChecker;

private void spellChecker_SpellChecking( object sender, SpellCheckingEventArgs e )
{
	Debug.WriteLine( "The following text will been spell checked: \"" + e.Text.Substring( e.Offset, e.Length ) + "\"" );
}

private void spellChecker_SpellChecked( object sender, SpellCheckedEventArgs e )
{
	Debug.WriteLine( 
		"The following text has been spell checked: \"" + 
		e.Text.Substring( e.Offset, e.Length ) + 
		"\" and " + e.Errors.Count + 
		" errors were found." );
}
参照