TextLine.GetCharacterHitFromDistance(Double) 方法

定義

取得字元點擊,此字元點擊對應於與行開頭的指定距離。

public:
 abstract System::Windows::Media::TextFormatting::CharacterHit GetCharacterHitFromDistance(double distance);
public abstract System.Windows.Media.TextFormatting.CharacterHit GetCharacterHitFromDistance (double distance);
abstract member GetCharacterHitFromDistance : double -> System.Windows.Media.TextFormatting.CharacterHit
Public MustOverride Function GetCharacterHitFromDistance (distance As Double) As CharacterHit

參數

distance
Double

Double 值,這個值表示與行開頭的距離。

傳回

CharacterHit

CharacterHit 物件,這個物件位於與行開頭的指定 distance

備註

文字流程方向會決定測量距離的方式。

適用於