TextPointer.LogicalDirection 属性

定义

获取与当前位置相关联的逻辑方向,用于消除与当前位置相关联内容的不确定性。Gets the logical direction associated with the current position which is used to disambiguate content associated with the current position.

public:
 property System::Windows::Documents::LogicalDirection LogicalDirection { System::Windows::Documents::LogicalDirection get(); };
public System.Windows.Documents.LogicalDirection LogicalDirection { get; }
member this.LogicalDirection : System.Windows.Documents.LogicalDirection
Public ReadOnly Property LogicalDirection As LogicalDirection

属性值

LogicalDirection

与当前位置相关联的 LogicalDirection 值。The LogicalDirection value that is associated with the current position.

注解

作为如何使用此属性的示例, LogicalDirection TextPointer 由命中测试方法返回的会提供一个介于文本两个字符之间的命中。As an example of how this property is used, the LogicalDirection of the TextPointer returned by a hit test method gives a hit that is between two characters of text. 逻辑方向指定实际命中了两个字符中的哪一个。The logical direction specifies which of the two characters was actually hit - the left or the right.

适用于