Condividi tramite


IVsTextStorage Interface

Represents the range of text that is viewable and editable by text editor views.

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

Syntax

'Declaration
<GuidAttribute("1ABAC269-8FB0-438E-8217-230AC6EB5766")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextStorage
[GuidAttribute("1ABAC269-8FB0-438E-8217-230AC6EB5766")]
[InterfaceTypeAttribute()]
public interface IVsTextStorage
[GuidAttribute(L"1ABAC269-8FB0-438E-8217-230AC6EB5766")]
[InterfaceTypeAttribute()]
public interface class IVsTextStorage
[<GuidAttribute("1ABAC269-8FB0-438E-8217-230AC6EB5766")>]
[<InterfaceTypeAttribute()>]
type IVsTextStorage =  interface end
public interface IVsTextStorage

The IVsTextStorage type exposes the following members.

Methods

  Name Description
Public method Storage_Attach Attaches a text buffer.
Public method Storage_CopyText Copy the specified text.
Public method Storage_Detach Detach the storage buffer.
Public method Storage_Find Find the specified text in the indicated span.
Public method Storage_GetCharsInSpan Gets the number of characters in the specified span.
Public method Storage_GetLanguageServiceID Gets the GUID of the language service.
Public method Storage_GetLength Gets the length of the storage.
Public method Storage_GetLengthOfLine Gets the length of the specified line.
Public method Storage_GetLineCount Gets the storage line count.
Public method Storage_GetLineDataEx Gets the line data.
Public method Storage_GetLineIndexOfPosition Gets the line index of a position in the storage.
Public method Storage_GetPositionOfLineIndex Gets the position in the storage of the specified line index.
Public method Storage_RefreshColorization Refresh the colorization of the specified set of lines.
Public method Storage_ReleaseLineDataEx Releases previously obtained line data.
Public method Storage_Replace Replace/change the text.
Public method Storage_SetLanguageServiceID Sets the language service for the storage.

Top

Remarks

IVsTextStorage is required for all storage objects.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace

IVsTextStorage2