IVsLanguageTextOps Interface

Definition

Provides additional IntelliSense features for the language service.

public interface class IVsLanguageTextOps
public interface class IVsLanguageTextOps
__interface IVsLanguageTextOps
[System.Runtime.InteropServices.Guid("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsLanguageTextOps
[System.Runtime.InteropServices.Guid("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsLanguageTextOps
[<System.Runtime.InteropServices.Guid("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsLanguageTextOps = interface
[<System.Runtime.InteropServices.Guid("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsLanguageTextOps = interface
Public Interface IVsLanguageTextOps
Attributes

Remarks

This interface provides support for obtaining word extent, data tip, and pair extent information, all of which are used in support of IntelliSense and advanced editing features.

Notes to Implementers

Implement this interface on the language service object to allow your language service to provide data tips, word extent, pair extent, and formatting.

Notes to Callers

Obtain this interface by asking the language service for it through the QueryService method. For example:

    public IVsLanguageTextOps GetTextOps(Microsoft.VisualStudio.OLE.Interop.IServiceProvider provider,  
Guid languageServiceGuid)  
    {  
        IVsLanguageTextOps textOps = null;  
        textOpts = provider.QueryService(languageServiceGuid,  
                                         typeof(IVsLanguageTextOps).GUID)  
                                as IVsLanguageTextOps;  
        return textOpts;  
    }  

Methods

Format(IVsTextLayer, TextSpan[])

Formats the selected text.

GetDataTip(IVsTextLayer, TextSpan[], TextSpan[], String)

Displays a tip over a span of text when the mouse hovers over this location.

GetPairExtent(IVsTextLayer, TextAddress, TextSpan[])

Determines the location of a matching brace, parenthesis, quotation mark, bracket, or any other item the language service wants to match.

GetWordExtent(IVsTextLayer, TextAddress, WORDEXTFLAGS, TextSpan[])

Returns the extent of a word or token on or near the point.

Applies to