共用方式為


IVsTextSpanSet Interface

Utility for text string matching.

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

Syntax

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("E6BBDFD0-C06A-11D2-936C-D714766E8B50")> _
Public Interface IVsTextSpanSet
[InterfaceTypeAttribute()]
[GuidAttribute("E6BBDFD0-C06A-11D2-936C-D714766E8B50")]
public interface IVsTextSpanSet
[InterfaceTypeAttribute()]
[GuidAttribute(L"E6BBDFD0-C06A-11D2-936C-D714766E8B50")]
public interface class IVsTextSpanSet
[<InterfaceTypeAttribute()>]
[<GuidAttribute("E6BBDFD0-C06A-11D2-936C-D714766E8B50")>]
type IVsTextSpanSet =  interface end
public interface IVsTextSpanSet

The IVsTextSpanSet type exposes the following members.

Methods

  Name Description
Public method Add Do not use this method.
Public method AddFromEnum Do not use this method.
Public method AttachTextImage Passes a text image to the environment.
Public method Detach Release a text image.
Public method GetAt Returns a requested text span.
Public method GetCount Returns the number of text spans
Public method RemoveAll Do not use this method.
Public method ResumeTracking Do not use this method.
Public method Sort Do not use this method.
Public method SuspendTracking Do not use this method.

Top

Remarks

To support searching, you must implement either GetSearchImage or Find and Find.

Notes to Implementers

Implement this interface to support find and replace in a text image.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace