ITextSnapshot2 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为包含 Unicode 字符序列的的不可变快照提供读取访问权限 ITextBuffer 。 序列中的第一个字符的索引为零。
public interface class ITextSnapshot2 : Microsoft::VisualStudio::Text::ITextSnapshot
public interface ITextSnapshot2 : Microsoft.VisualStudio.Text.ITextSnapshot
type ITextSnapshot2 = interface
interface ITextSnapshot
Public Interface ITextSnapshot2
Implements ITextSnapshot
- 实现
注解
Any ITextSnapshot 将 upcastable 到 ITextSnapshot2 。
属性
| ContentType |
IContentType TextBuffer 此快照为当前快照时的。 (继承自 ITextSnapshot) |
| Item[Int32] |
获取位于指定位置的单个字符。 (继承自 ITextSnapshot) |
| Length |
获取快照中包含的 UTF-16 字符数。 (继承自 ITextSnapshot) |
| LineCount |
获取快照中的正数。 其为零的快照被 Length 视为具有一行。 (继承自 ITextSnapshot) |
| Lines |
快照中的行集的枚举器。 (继承自 ITextSnapshot) |
| TextBuffer |
ITextBuffer此为快照的。 (继承自 ITextSnapshot) |
| TextImage |
获取快照的基础 ITextImage 。 |
| Version |
此表示的的版本 ITextBuffer ITextSnapshot 。 (继承自 ITextSnapshot) |