IPersistentSpanFactory Interface

Visual Studio 2015
 

A factory for creating IPersistentSpan objects.

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

public interface IPersistentSpanFactory

NameDescription
System_CAPS_pubmethodCanCreate(ITextBuffer)

Determines whether an IPersistentSpan can be created on the specified buffer.

System_CAPS_pubmethodCreate(ITextSnapshot, Int32, Int32, Int32, Int32, SpanTrackingMode)

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

System_CAPS_pubmethodCreate(SnapshotSpan, SpanTrackingMode)

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

System_CAPS_pubmethodCreate(String, Int32, Int32, Int32, Int32, SpanTrackingMode)

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

System_CAPS_pubmethodCreate(String, Span, SpanTrackingMode)

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

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 reopene. These spans track changes made only while the document is open. They will not track changes made to the document while the document is closed (through Notepad or something similar).

Return to top
Show: