传递给 GetService 返回对 IVsTextManager 和 IVsHiddenTextManager。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<GuidAttribute("F5E7E71D-1401-11d1-883B-0000F87579D2")> _
<GuidAttribute("F5E7E71D-1401-11d1-883B-0000F87579D2")> _
Public Interface SVsTextManager
[GuidAttribute("F5E7E71D-1401-11d1-883B-0000F87579D2")]
[GuidAttribute("F5E7E71D-1401-11d1-883B-0000F87579D2")]
public interface SVsTextManager
[GuidAttribute(L"F5E7E71D-1401-11d1-883B-0000F87579D2")]
[GuidAttribute(L"F5E7E71D-1401-11d1-883B-0000F87579D2")]
public interface class SVsTextManager
[<GuidAttribute("F5E7E71D-1401-11d1-883B-0000F87579D2")>]
[<GuidAttribute("F5E7E71D-1401-11d1-883B-0000F87579D2")>]
type SVsTextManager = interface end
public interface SVsTextManager
备注
需要向用户授予读取或编辑文本中的每个 VSPackage。 文本流不必对应于文件。 通常,当标准文本编辑器是最佳编辑匹配时,文本文档框架通过 IVsUIShellOpenDocument.OpenStandardEditor 创建