Compartilhar via


IVsTextViewFilter Interface

Allows further modification of the text view.

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

Syntax

'Declaration
<GuidAttribute("6B6F0B32-B88B-40F8-A8FE-97438C5BDBEF")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextViewFilter
[GuidAttribute("6B6F0B32-B88B-40F8-A8FE-97438C5BDBEF")]
[InterfaceTypeAttribute()]
public interface IVsTextViewFilter
[GuidAttribute(L"6B6F0B32-B88B-40F8-A8FE-97438C5BDBEF")]
[InterfaceTypeAttribute()]
public interface class IVsTextViewFilter
[<GuidAttribute("6B6F0B32-B88B-40F8-A8FE-97438C5BDBEF")>]
[<InterfaceTypeAttribute()>]
type IVsTextViewFilter =  interface end
public interface IVsTextViewFilter

The IVsTextViewFilter type exposes the following members.

Methods

  Name Description
Public method GetDataTipText Provides data-tip support by obtaining the string value of the tip text.
Public method GetPairExtents Returns the location of a matching pair item, given the location of the first item.
Public method GetWordExtent Calculates the word extent based on a character position.

Top

Remarks

When you implement IVsTextViewFilter on your object, also provide an IOleCommandTarget interface off of the object. Retrieve IVsTextViewFilter by querying the IOleCommandTarget interface that is passed into the AddCommandFilter method. There should be one IVsTextViewFilter object for each view. The view is implicit when you make calls to this interface.

See illustrations of the implementation and/or calling of this interface in the sample Figures Language Service.

Notes to Implementers

Implement this interface to further customize the core text editor.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace