IPersistentSpanFactory Interface

Definition

A factory for creating IPersistentSpans.

public interface class IPersistentSpanFactory
public interface class IPersistentSpanFactory
__interface IPersistentSpanFactory
public interface IPersistentSpanFactory
type IPersistentSpanFactory = interface
Public Interface IPersistentSpanFactory

Remarks

PersistentSpans are similar to ITrackingSpans, except they can be created on closed documents and will continue to track even when a document is closed and reopened.

These spans only track changes made while the document is open. They will not track changes made to the document while the document is closed (through Notepad or something similar).

Methods

CanCreate(ITextBuffer)

Can an IPersistentSpan be created on the specified buffer.

Create(ITextSnapshot, Int32, Int32, Int32, Int32, SpanTrackingMode)

Create an IPersistentSpan for a snapshot span on a document that is currently open.

Create(SnapshotSpan, SpanTrackingMode)

Create an IPersistentSpan for a snapshot span on a document that is currently open.

Create(String, Int32, Int32, Int32, Int32, SpanTrackingMode)

Create an IPersistentSpan for a snapshot span on a document that is currently closed.

Create(String, Span, SpanTrackingMode)

Create an IPersistentSpan for a snapshot span on a document that is currently closed.

Applies to