Freigeben über


VsTextLineStorageClass Class

Represents the image that is persisted and unpersisted. Represents the range of text that is viewable and editable by text editor views. See IVsPersistentTextImage and IVsTextStorage.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsTextLineStorageClass

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

Syntax

'Declaration
<GuidAttribute("D6513A91-ACC8-11D2-8919-0000F87579D2")> _
<ClassInterfaceAttribute()> _
Public Class VsTextLineStorageClass _
    Implements IVsTextStorage, VsTextLineStorage, IVsPersistentTextImage
[GuidAttribute("D6513A91-ACC8-11D2-8919-0000F87579D2")]
[ClassInterfaceAttribute()]
public class VsTextLineStorageClass : IVsTextStorage, 
    VsTextLineStorage, IVsPersistentTextImage
[GuidAttribute(L"D6513A91-ACC8-11D2-8919-0000F87579D2")]
[ClassInterfaceAttribute()]
public ref class VsTextLineStorageClass : IVsTextStorage, 
    VsTextLineStorage, IVsPersistentTextImage
[<GuidAttribute("D6513A91-ACC8-11D2-8919-0000F87579D2")>]
[<ClassInterfaceAttribute()>]
type VsTextLineStorageClass =  
    class
        interface IVsTextStorage
        interface VsTextLineStorage
        interface IVsPersistentTextImage
    end
public class VsTextLineStorageClass implements IVsTextStorage, VsTextLineStorage, IVsPersistentTextImage

The VsTextLineStorageClass type exposes the following members.

Constructors

  Name Description
Public method VsTextLineStorageClass Creates a new instance of the class.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Image_Alloc Allocates space of specified size for persistent disk image storage.
Public method Image_CloseFullTextScan Closes the full text scan of the image.
Public method Image_Free Frees space used by the persistent disk image.
Public method Image_FullTextRead Reads the full text image.
Public method Image_GetLength Gets the length of the text image.
Public method Image_LoadText Loads the specified text image.
Public method Image_OpenFullTextScan Open a full scan of the text image.
Public method Image_Realloc Reallocates space for the specified text image.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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. Flags indicating search options.
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 line index of a position in the storage.
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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace