Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)
[InterfaceTypeAttribute(1)] [GuidAttribute("EBD73923-C190-45C1-91C5-0BC61A8AAB14")] public interface IVsTextScanner
/** @attribute InterfaceTypeAttribute(1) */ /** @attribute GuidAttribute("EBD73923-C190-45C1-91C5-0BC61A8AAB14") */ public interface IVsTextScanner
IVsTextScanner is particularly useful to compilers, which need rapid, sequential, stream-oriented access to text in the text buffer. However, this interface locks the buffer and performs a garbage-collection pass, which incurs an expensive performance hit. Use of this interface is therefore not recommended in scenarios such as performing a query status on the handler or other performance-sensitive scenarios.
This interface allows you to obtain selected text from the text buffer. If you need access to the full contents of the text buffer, consider usingNotes to Implementers Implement IVsTextScanner to obtain quick access to the text buffer. .