GetNextCaretCharacterHit Method

GlyphRun.GetNextCaretCharacterHit Method (CharacterHit)


Retrieves the next valid caret character hit in the logical direction in the GlyphRun.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

Public Function GetNextCaretCharacterHit (
	characterHit As CharacterHit
) As CharacterHit


Type: System.Windows.Media.TextFormatting.CharacterHit

The CharacterHit to use for computing the next hit value.

Return Value

Type: System.Windows.Media.TextFormatting.CharacterHit

A CharacterHit that represents the next valid caret character hit in the logical direction. If the return value is equal to characterHit, no further navigation is possible in the GlyphRun.

To retrieve the previous valid caret character hit, use GetPreviousCaretCharacterHit.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft