TextBox.GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar början teckenindex för nästa stavningsfel i innehållet i textrutan.
public:
int GetNextSpellingErrorCharacterIndex(int charIndex, System::Windows::Documents::LogicalDirection direction);
public int GetNextSpellingErrorCharacterIndex(int charIndex, System.Windows.Documents.LogicalDirection direction);
member this.GetNextSpellingErrorCharacterIndex : int * System.Windows.Documents.LogicalDirection -> int
Public Function GetNextSpellingErrorCharacterIndex (charIndex As Integer, direction As LogicalDirection) As Integer
Parametrar
- charIndex
- Int32
Det nollbaserade teckenindexet som anger en position som du vill söka efter nästa stavningsfel från.
- direction
- LogicalDirection
Ett av de LogicalDirection värden som anger i vilken riktning du ska söka efter nästa stavningsfel, med början vid den angivna charIndex.
Returer
Teckenindexet för början av nästa stavningsfel i innehållet i textrutan eller -1 om det inte finns något nästa stavfel.