GlyphRun.GetCaretCharacterHitFromDistance(Double, Boolean) 메서드

정의

CharacterHit의 적중한 캐럿 문자를 나타내는 GlyphRun 값을 검색합니다.

public:
 System::Windows::Media::TextFormatting::CharacterHit GetCaretCharacterHitFromDistance(double distance, [Runtime::InteropServices::Out] bool % isInside);
public System.Windows.Media.TextFormatting.CharacterHit GetCaretCharacterHitFromDistance (double distance, out bool isInside);
member this.GetCaretCharacterHitFromDistance : double * bool -> System.Windows.Media.TextFormatting.CharacterHit
Public Function GetCaretCharacterHitFromDistance (distance As Double, ByRef isInside As Boolean) As CharacterHit

매개 변수

distance
Double

적중한 캐럿 문자를 계산하는 데 사용할 오프셋입니다.

isInside
Boolean

적중 문자가 GlyphRun 안에 있는지 여부를 확인합니다.

반환

distance 값에 가장 가까운 적중 문자를 나타내는 CharacterHit 값입니다. out 매개 변수 isInside는 적중 문자가 GlyphRun 안에 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

설명

값은 distance 의 선행 가장자리에서 오프셋을 GlyphRun나타냅니다.

적중이 외부에 GlyphRun있는 경우 문자 적중은 내에서 가장 가까운 캐럿 문자 적중을 GlyphRun나타냅니다.

구조체는 CharacterHit 적중된 첫 번째 문자의 인덱스 및 선행 또는 후행 에지에 대한 정보인 내 GlyphRun 의 문자 적중에 대한 정보를 나타냅니다.

적용 대상