共用方式為


SVsTextManager Interface

Passed to GetService to return a reference to IVsTextManager and IVsHiddenTextManager.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
<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

Remarks

Every VSPackage that needs to allow a user to read or edit text. Text streams do not necessarily have to correspond with files. Typically a text document frame is created through IVsUIShellOpenDocument.OpenStandardEditor when the standard text editor is the best editor match

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace