Поделиться через


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)

Syntax

'Декларация
<InterfaceTypeAttribute()> _
<GuidAttribute("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")> _
Public Interface IVsLanguageTextOps
'Применение
Dim instance As IVsLanguageTextOps
[InterfaceTypeAttribute()]
[GuidAttribute("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")]
public interface IVsLanguageTextOps
[InterfaceTypeAttribute()]
[GuidAttribute(L"518020A6-8D59-4C80-9AAE-015AB9DCC3DE")]
public interface class IVsLanguageTextOps
[<InterfaceTypeAttribute()>]
[<GuidAttribute("518020A6-8D59-4C80-9AAE-015AB9DCC3DE")>]
type IVsLanguageTextOps =  interface end
public interface IVsLanguageTextOps

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;
    }

See Also

Reference

IVsLanguageTextOps Members

Microsoft.VisualStudio.TextManager.Interop Namespace