TextLine.GetDistanceFromCharacterHit(CharacterHit) 方法

定义

获取从行开头到指定字符命中的距离。

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

参数

characterHit
CharacterHit

要查询其距离的 CharacterHit 对象。

返回

一个 Double,表示从行开头算起的距离。

注解

文本流方向确定距离的测量方式。

适用于