GlyphRun.GetNextCaretCharacterHit Method (CharacterHit)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public CharacterHit GetNextCaretCharacterHit(
	CharacterHit characterHit
)

Parameters

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
Show: