言語

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内にあるかどうかを判断します。

返品

CharacterHit値に最も近い文字ヒットを表すdistance値。 out パラメーターisInsideは、文字ヒットがtrue内にある場合はGlyphRunを返します。それ以外の場合はfalse

注釈

distance値は、GlyphRunの上端からのオフセットを表します。

ヒットが GlyphRun外にある場合、文字ヒットは GlyphRun内で最も近いキャレット文字ヒットを表します。

CharacterHit構造体は、GlyphRun内の文字ヒットに関する情報 (ヒットした最初の文字のインデックスと、先頭または末尾の端に関する情報) を表します。

適用対象