共用方式為


VsTextPackageClass Class

Provides general services for anyone wanting information about the active text views.

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

Syntax

'宣告
<ClassInterfaceAttribute()> _
<GuidAttribute("F5E7E720-1401-11D1-883B-0000F87579D2")> _
Public Class VsTextPackageClass _
    Implements IVsTextManager, VsTextPackage
'用途
Dim instance As VsTextPackageClass
[ClassInterfaceAttribute()]
[GuidAttribute("F5E7E720-1401-11D1-883B-0000F87579D2")]
public class VsTextPackageClass : IVsTextManager, 
    VsTextPackage
[ClassInterfaceAttribute()]
[GuidAttribute(L"F5E7E720-1401-11D1-883B-0000F87579D2")]
public ref class VsTextPackageClass : IVsTextManager, 
    VsTextPackage
[<ClassInterfaceAttribute()>]
[<GuidAttribute("F5E7E720-1401-11D1-883B-0000F87579D2")>]
type VsTextPackageClass =  
    class
        interface IVsTextManager
        interface VsTextPackage
    end
public class VsTextPackageClass implements IVsTextManager, VsTextPackage

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsTextPackageClass

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

VsTextPackageClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace