Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GlyphRun.GetPreviousCaretCharacterHit Method (CharacterHit)

 

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:
© 2017 Microsoft