共用方式為


VsTextBuffer Interface

Acts as the base interface for the VsTextBuffer object and provides general information about the text buffer's properties. Provides read and write access to the text buffer using two-dimensional coordinates.

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

Syntax

'Declaration
<GuidAttribute("C08E5275-0D26-4DE9-8892-994024C23750")> _
Public Interface VsTextBuffer _
    Inherits IVsTextBuffer
[GuidAttribute("C08E5275-0D26-4DE9-8892-994024C23750")]
public interface VsTextBuffer : IVsTextBuffer
[GuidAttribute(L"C08E5275-0D26-4DE9-8892-994024C23750")]
public interface class VsTextBuffer : IVsTextBuffer
[<GuidAttribute("C08E5275-0D26-4DE9-8892-994024C23750")>]
type VsTextBuffer =  
    interface 
        interface IVsTextBuffer 
    end
public interface VsTextBuffer extends IVsTextBuffer

The VsTextBuffer type exposes the following members.

Methods

  Name Description
Public method GetLanguageServiceID Returns the unique identifier of the language that is providing colorization and other attribute data to this buffer. (Inherited from IVsTextBuffer.)
Public method GetLastLineIndex Returns the last line in the text buffer. (Inherited from IVsTextBuffer.)
Public method GetLengthOfLine Returns the length of a line in the buffer. (Inherited from IVsTextBuffer.)
Public method GetLineCount Returns the number of lines in the buffer. (Inherited from IVsTextBuffer.)
Public method GetLineIndexOfPosition Returns the line and column numbers in the text buffer, given a position number. (Inherited from IVsTextBuffer.)
Public method GetPositionOfLine Returns the position number of a line. (Inherited from IVsTextBuffer.)
Public method GetPositionOfLineIndex Returns the position number in the text buffer, given a line and column number. (Inherited from IVsTextBuffer.)
Public method GetSize Returns the size in characters of the buffer. (Inherited from IVsTextBuffer.)
Public method GetStateFlags Returns the state flags of the text buffer. (Inherited from IVsTextBuffer.)
Public method GetUndoManager Returns the undo manager for this buffer. (Inherited from IVsTextBuffer.)
Public method InitializeContent Initializes the content of the text buffer. (Inherited from IVsTextBuffer.)
Public method LockBuffer Has no effect. Deprecated. (Inherited from IVsTextBuffer.)
Public method LockBufferEx Has no effect. Deprecated. (Inherited from IVsTextBuffer.)
Public method Reload Reloads the text buffer. (Inherited from IVsTextBuffer.)
Public method Reserved1 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved10 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved2 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved3 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved4 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved5 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved6 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved7 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved8 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method Reserved9 Reserved in the Vtable for future use. (Inherited from IVsTextBuffer.)
Public method SetLanguageServiceID Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer. (Inherited from IVsTextBuffer.)
Public method SetStateFlags Sets the state flags of the text buffer. (Inherited from IVsTextBuffer.)
Public method UnlockBuffer Has no effect. Deprecated. (Inherited from IVsTextBuffer.)
Public method UnlockBufferEx Has no effect. Deprecated. (Inherited from IVsTextBuffer.)

Top

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace