Export (0) Print
Expand All

IVsLanguageTextOps Interface

Provides additional IntelliSense features for the language service.

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

public interface IVsLanguageTextOps

The IVsLanguageTextOps type exposes the following members.

Public methodFormatFormats the selected text.
Public methodGetDataTipDisplays a tip over a span of text when the mouse hovers over this location.
Public methodGetPairExtentDetermines the location of a matching brace, parenthesis, quotation mark, bracket, or any other item the language service wants to match.
Public methodGetWordExtentReturns the extent of a word or token on or near the point.

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,
                                as IVsLanguageTextOps;
        return textOpts;
© 2014 Microsoft