RichTextBox.GetNextSpellingErrorPosition 方法

定義

傳回 TextPointer,指向 RichTextBox 內容中的下一個拼字錯誤。

public:
 System::Windows::Documents::TextPointer ^ GetNextSpellingErrorPosition(System::Windows::Documents::TextPointer ^ position, System::Windows::Documents::LogicalDirection direction);
public System.Windows.Documents.TextPointer GetNextSpellingErrorPosition (System.Windows.Documents.TextPointer position, System.Windows.Documents.LogicalDirection direction);
member this.GetNextSpellingErrorPosition : System.Windows.Documents.TextPointer * System.Windows.Documents.LogicalDirection -> System.Windows.Documents.TextPointer
Public Function GetNextSpellingErrorPosition (position As TextPointer, direction As LogicalDirection) As TextPointer

參數

position
TextPointer

TextPointer 表示要搜尋下一個拼字錯誤的起始位置。

direction
LogicalDirection

LogicalDirection 要在其中搜尋下一個拼字錯誤,從指定的 position 開始。

傳回

TextPointer 會指向 RichTextBox 內容中的下一個拼字錯誤,如果沒有下一個拼字錯誤存在,則指向 null

適用於

另請參閱