Freigeben über


IProjectionBufferFactoryService Interface

Used to create projection buffers.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Interface IProjectionBufferFactoryService
public interface IProjectionBufferFactoryService
public interface class IProjectionBufferFactoryService
type IProjectionBufferFactoryService =  interface end
public interface IProjectionBufferFactoryService

The IProjectionBufferFactoryService type exposes the following members.

Properties

  Name Description
Public property ProjectionContentType Gets the default content type for projection buffers.

Top

Methods

  Name Description
Public method CreateElisionBuffer(IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions) Creates an elision buffer with the default projection IContentType and initialized to the specified list of snapshot spans from a single source buffer.
Public method CreateElisionBuffer(IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions, IContentType) Create an elision buffer initialized to expose the provided list of snapshot spans from a single source buffer.
Public method CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions) Creates an IProjectionBuffer object with the default projection IContentType and the specified list of source spans.
Public method CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType) Creates an IProjectionBuffer object with a specified IContentType and the specified list of ITrackingSpan objects and/or literal strings.

Top

Events

  Name Description
Public event ProjectionBufferCreated Raised when any IProjectionBuffer or IElisionBuffer is created.

Top

Remarks

This is a MEF component part, and should be imported as follows:

[Import] IProjectionBufferFactoryService factory = null;

For more information about projection, see the section "Projection" in Inside the Editor.

See Also

Reference

Microsoft.VisualStudio.Text.Projection Namespace