ITextBuffer 中的跟踪位置。
命名空间: Microsoft.VisualStudio.Text
程序集: Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)
语法
声明
Public Interface ITrackingPoint
public interface ITrackingPoint
public interface class ITrackingPoint
type ITrackingPoint = interface end
public interface ITrackingPoint
ITrackingPoint 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
TextBuffer | 获取点引用的 ITextBuffer 。 |
![]() |
TrackingFidelity | 确定在移至早期版本或遇到早期版本的副本(因撤消或重做操作)时跟踪点的行为。 |
![]() |
TrackingMode | 确定当在跟踪点位置插入时跟踪点是发生移位还是保持静止。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
GetCharacter | 将此跟踪点映射到指定快照,并获取位于该位置的字符。 |
![]() |
GetPoint | 将跟踪点映射到其 ITextBuffer 的特定快照。 |
![]() |
GetPosition(ITextSnapshot) | 在指定的 ITextSnapshot获取的位置跟踪点。 |
![]() |
GetPosition(ITextVersion) | 在指定的 ITextVersion获取的位置跟踪点。 |
页首
备注
有关跟踪的信息,请参见 “跟踪点,并跟踪范围” 在编辑器内的一部分。