Freigeben über


VsExpansionManagerClass Class

Definition

Represents the expansion manager, which knows how to find and display lists of code snippets for a particular coding language.

public ref class VsExpansionManagerClass : Microsoft::VisualStudio::TextManager::Interop::VsExpansionManager
[Windows::Foundation::Metadata::WebHostHidden]
class VsExpansionManagerClass : Microsoft::VisualStudio::TextManager::Interop::VsExpansionManager
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.Guid("4970C2BC-AF33-4A73-A34F-18B0584C40E4")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsExpansionManagerClass : Microsoft.VisualStudio.TextManager.Interop.VsExpansionManager
[System.Runtime.InteropServices.Guid("4970C2BC-AF33-4A73-A34F-18B0584C40E4")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsExpansionManagerClass : Microsoft.VisualStudio.TextManager.Interop.VsExpansionManager
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("4970C2BC-AF33-4A73-A34F-18B0584C40E4")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsExpansionManagerClass = class
    interface IVsExpansionManager
    interface VsExpansionManager
[<System.Runtime.InteropServices.Guid("4970C2BC-AF33-4A73-A34F-18B0584C40E4")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsExpansionManagerClass = class
    interface VsExpansionManager
    interface IVsExpansionManager
Public Class VsExpansionManagerClass
Implements VsExpansionManager
Inheritance
VsExpansionManagerClass
Attributes
Implements

Remarks

To create an object of this class, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Constructors

VsExpansionManagerClass()

Creates a new instance of the expansion manager.

Methods

EnumerateExpansions(Guid, Int32, String[], Int32, Int32, Int32, IVsExpansionEnumeration)

Retrieves a list of code snippets for the specified coding language. See EnumerateExpansions(Guid, Int32, String[], Int32, Int32, Int32, IVsExpansionEnumeration).

GetExpansionByShortcut(IVsExpansionClient, Guid, String, IVsTextView, TextSpan[], Int32, String, String)

Retrieves the title and path to a snippet given its shortcut name. See GetExpansionByShortcut(IVsExpansionClient, Guid, String, IVsTextView, TextSpan[], Int32, String, String).

GetSnippetShortCutKeybindingState(Int32)

Determines if a key has been bound to the "Invoke Snippet From Shortcut" command. See GetSnippetShortCutKeybindingState(Int32).

GetTokenPath(UInt32, String)

Returns the path to the specified location. See GetTokenPath(UInt32, String)

InvokeInsertionUI(IVsTextView, IVsExpansionClient, Guid, String[], Int32, Int32, String[], Int32, Int32, String, String)

Shows an IntelliSense list of code snippets that can be inserted into the source through the provided IVsExpansionClient object.See InvokeInsertionUI(IVsTextView, IVsExpansionClient, Guid, String[], Int32, Int32, String[], Int32, Int32, String, String).

Applies to