Compartir a través de


VsTextBufferCoordinatorClass Class

Provides mapping services between two buffers. See IVsTextBufferCoordinator.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsTextBufferCoordinatorClass

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

Syntax

'Declaración
<GuidAttribute("3E77FA94-526F-4233-BF81-B2B0329A62B9")> _
<ClassInterfaceAttribute()> _
Public Class VsTextBufferCoordinatorClass _
    Implements IVsTextBufferCoordinator, VsTextBufferCoordinator
[GuidAttribute("3E77FA94-526F-4233-BF81-B2B0329A62B9")]
[ClassInterfaceAttribute()]
public class VsTextBufferCoordinatorClass : IVsTextBufferCoordinator, 
    VsTextBufferCoordinator
[GuidAttribute(L"3E77FA94-526F-4233-BF81-B2B0329A62B9")]
[ClassInterfaceAttribute()]
public ref class VsTextBufferCoordinatorClass : IVsTextBufferCoordinator, 
    VsTextBufferCoordinator
[<GuidAttribute("3E77FA94-526F-4233-BF81-B2B0329A62B9")>]
[<ClassInterfaceAttribute()>]
type VsTextBufferCoordinatorClass =  
    class
        interface IVsTextBufferCoordinator
        interface VsTextBufferCoordinator
    end
public class VsTextBufferCoordinatorClass implements IVsTextBufferCoordinator, VsTextBufferCoordinator

The VsTextBufferCoordinatorClass type exposes the following members.

Constructors

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

Top

Methods

  Name Description
Public method EnableReplication Enables replication from primary to secondary buffer and replication from the secondary buffer to the primary.
Public method EnumSpans Returns a list of span mappings controlled by the buffer coordinator object.
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 GetMappingOfPrimaryPosition Maps the specified position in the primary buffer to the span in the secondary buffer.
Public method GetPrimaryBuffer Returns the primary language buffer.
Public method GetSecondaryBuffer Returns the secondary language buffer.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MapPrimaryToSecondarySpan Maps the specified position in the primary buffer to a position in the secondary buffer.
Public method MapSecondaryToPrimarySpan Maps the specified position in the secondary buffer to a position in the primary buffer.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetBufferMappingModes Establishes the mapping modes for both primary and secondary buffers.
Public method SetBuffers Establishes the primary and secondary buffers that are to be managed by the buffer coordinator object.
Public method SetSpanMappings Establishes the list of mappings between the primary and secondary buffers.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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