LogicalDirection 枚举

定义

指定执行某些文本操作所使用的逻辑方向,如在相对于指定位置(一个 TextPointer)的文本中进行插入、检索或导航等操作。Specifies a logical direction in which to perform certain text operations, such as inserting, retrieving, or navigating through text relative to a specified position (a TextPointer).

public enum class LogicalDirection
public enum LogicalDirection
type LogicalDirection = 
Public Enum LogicalDirection
继承
LogicalDirection

字段

Backward 0

向后或从右到左。Backward, or from right to left.

Forward 1

向前或从左到右。Forward, or from left to right.

示例

此枚举用于确定插入新内容的位置TextPointer时使用的方法之一。One of the ways in which this enumeration is used to determine where to place a TextPointer when new content is inserted. 如果值为 "向后", 则文本位置将直接放置在新内容之前, 而 " TextPointer 向前" 值将直接置于新内容之后。A value of Backward places the text position directly before the new content, whereas a value of Forward places the TextPointer directly after the new content.

适用于