共用方式為


GlyphRun.GetPreviousCaretCharacterHit(CharacterHit) 方法

定義

擷取 GlyphRun 中邏輯方向的前一個有效插入號字元點擊。

public:
 System::Windows::Media::TextFormatting::CharacterHit GetPreviousCaretCharacterHit(System::Windows::Media::TextFormatting::CharacterHit characterHit);
public System.Windows.Media.TextFormatting.CharacterHit GetPreviousCaretCharacterHit (System.Windows.Media.TextFormatting.CharacterHit characterHit);
member this.GetPreviousCaretCharacterHit : System.Windows.Media.TextFormatting.CharacterHit -> System.Windows.Media.TextFormatting.CharacterHit
Public Function GetPreviousCaretCharacterHit (characterHit As CharacterHit) As CharacterHit

參數

characterHit
CharacterHit

要用於計算前一個點擊值的 CharacterHit

傳回

CharacterHit,表示邏輯方向的前一個有效插入號字元點擊。 如果傳回值等於 characterHit,則不會在 GlyphRun 中進一步巡覽。

備註

若要擷取下一個有效的插入號字元點擊,請使用 GetNextCaretCharacterHit

適用於