GlyphRun.GetPreviousCaretCharacterHit 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 previous valid caret character hit in the logical direction in the GlyphRun.

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

public CharacterHit GetPreviousCaretCharacterHit(
	CharacterHit characterHit
)

Parameters

characterHit
Type: System.Windows.Media.TextFormatting.CharacterHit

The CharacterHit to use for computing the previous hit value.

Return Value

Type: System.Windows.Media.TextFormatting.CharacterHit

A CharacterHit that represents the previous 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 next valid caret character hit, use GetNextCaretCharacterHit.

.NET Framework
Available since 3.0
Return to top
Show: