TextBox.GetSpellingError(Int32) 方法

定義

傳回與指定字元索引處之任何拼字錯誤相關聯的 SpellingError 物件。

public:
 System::Windows::Controls::SpellingError ^ GetSpellingError(int charIndex);
public System.Windows.Controls.SpellingError GetSpellingError (int charIndex);
member this.GetSpellingError : int -> System.Windows.Controls.SpellingError
Public Function GetSpellingError (charIndex As Integer) As SpellingError

參數

charIndex
Int32

內容中某個位置之以零為起始的字元索引,用以檢查拼字錯誤。

傳回

SpellingError 物件,其中包含 charIndex 所指定的字元處所找到之拼字錯誤的詳細資料;如果指定的字元處沒有任何拼字錯誤,則為 null

適用於

另請參閱