RichTextBox.GetNextSpellingErrorPosition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a TextPointer that points to the next spelling error in the contents of the 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
Parameters
- position
- TextPointer
A TextPointer indicating a position from which to search for the next spelling error.
- direction
- LogicalDirection
A LogicalDirection in which to search for the next spelling error, starting at the specified position
.
Returns
A TextPointer that points to the next spelling error in the contents of the RichTextBox, or null
if no next spelling error exists.