Microsoft.VisualStudio.Text Namespace

Classes

ContentTypeChangedEventArgs

Provides information about a change to the IContentType on an ITextBuffer.

EncodingChangedEventArgs

Provides information for the EncodingChanged event.

NormalizedSnapshotSpanCollection

A read-only collection of SnapshotSpan objects, all from the same snapshot.

NormalizedSpanCollection

A collection of spans that are sorted by start position, with adjacent and overlapping spans combined.

PreContentChangedEventArgs

Information provided before content changes.

SnapshotSpanEventArgs

Provides information for events that report changes affecting a span of text.

TextBufferCreatedEventArgs

Provides information about a newly created ITextBuffer.

TextContentChangedEventArgs

Provides information about an edit transaction on an ITextBuffer.

TextContentChangingEventArgs

Provides information about an upcoming edit transaction on a ITextBuffer

TextDataModelContentTypeChangedEventArgs

Provides information about a change to the IContentType of an ITextDataModel.

TextDocumentEventArgs

Provides information for events when an ITextDocument has been created or disposed.

TextDocumentFileActionEventArgs

Provides information for events that are raised when an ITextDocument has loaded from or saved to disk.

TextImageExtensions
TextSnapshotChangedEventArgs

Provides information about a transaction on a ITextBuffer that causes a new ITextSnapshot to be generated.

TextSnapshotToTextReader

Provides a TextReader facade over a text snapshot.

Tracking

Defines position tracking forward and backward in time.

Structs

EditOptions

Options applicable to text editing transactions.

SnapshotPoint

An immutable text position in a particular text snapshot.

SnapshotSpan

An immutable text span in a particular text snapshot.

Span

An immutable integer interval that describes a range of values from Start to End that is closed on the left and open on the right: [Start .. End). A zpan is usually applied to an ITextSnapshot to denote a span of text, but it is independent of any particular text buffer or snapshot.

TextImageLine

Immutable information about a line of text from an ITextImage.

VersionedPosition

Describes a location in a specific ITextImageVersion.

VersionedSpan

Describes a span in a specific ITextImageVersion.

VirtualSnapshotPoint

Represents a SnapshotPoint that may have virtual spaces.

VirtualSnapshotSpan

Represents two VirtualSnapshotPoints

Interfaces

IEncodingDetector

Attempts to detect a text encoding associated with a stream.

IExtensionErrorHandler

Allows editor hosts to detect exceptions that get captured at extension points.

IExtensionPerformanceTracker

Allows editor hosts to track performance of extension points.

IMappingPoint

A position in a ITextBuffer that can be mapped within a IBufferGraph.

IMappingSpan

A span in a ITextBuffer that can be mapped within a IBufferGraph.

INormalizedTextChangeCollection

A normalized list of ITextChange objects. Changes are sorted in ascending order of position, and abutting and overlapping changes are combined into a single change.

IPersistentSpan

Describes span in a document that remains valid even when the document is closed, opened or modified (while it is open).

IPersistentSpanFactory

A factory for creating IPersistentSpans.

IReadOnlyRegion

A handle that tracks a possibly empty read-only region of text.

IReadOnlyRegionEdit

Provides for an atomic set of read-only region editing operations on an ITextBuffer. Edition positions are specified with respect to the state of the ITextBuffer at the time the IReadOnlyRegionEdit object was created.

ITextBuffer

A mutable sequence of Unicode characters encoded using UTF-16. Positions within the buffer are treated as a sequence of characters (starting at character zero) or as a sequence of lines (starting at line zero). An empty buffer has a single line containing no characters.

ITextBuffer2

A mutable sequence of Unicode characters encoded using UTF-16. Positions within the buffer are treated as a sequence of characters (starting at character zero) or as a sequence of lines (starting at line zero). An empty buffer has a single line containing no characters.

ITextBufferEdit

Represents edit operations against a ITextBuffer.

ITextBufferFactoryService

The factory service for ordinary TextBuffers.

ITextBufferFactoryService3

The factory service for ordinary TextBuffers.

ITextChange

Describes a single contiguous text change operation on the Text Buffer.

        All text changes are considered to be the replacement of <code>oldText</code> with <code>newText</code>.
        <p>
        Insertion is a text change in which <code>oldText</code> is an empty string and <code>newText</code> a non-empty string.
        </p><p>
        Deletion is a text change in which  <code>oldText</code> is a non-empty string and <code>newText</code> is an empty string.
        </p><p>
        Modification is a text change in which both <code>oldText</code> and <code>newText</code> are non-empty strings.
        </p>
ITextChange2

Extends ITextChange with the concept of an opaque change.

ITextChange3

Extends ITextChange2 with an ability to efficiently get a substring of old and new text.

ITextDataModel

Prepares the ITextBuffer for presentation in the editor. Typically the ITextDataModel comprises a single ITextBuffer that is exposed as both the DocumentBuffer and the DataBuffer. However, in some cases, a graph of IProjectionBuffers is useful to present as it if were a single document. In that case, the DataBuffer will be an IProjectionBuffer that uses the DocumentBuffer as a source buffer, directly or indirectly.

ITextDocument

Represents a document in the file system that persists an ITextBuffer.

ITextDocumentFactoryService

Represents a service that creates, loads, and disposes text documents.

ITextEdit

Represents a set of editing operations on an ITextBuffer. The positions of all edit operations are specified with respect to the state of the ITextBuffer at the time this object was created.

ITextImage

Provides read access to an immutable sequence of Unicode characters. The first character in the sequence has index zero.

ITextImageFactoryService

The factory service for creating ITextImages.

ITextImageVersion

Describes a version of an ITextImage.

ITextSnapshot

Provides read access to an immutable snapshot of a ITextBuffer containing a sequence of Unicode characters. The first character in the sequence has index zero.

ITextSnapshot2

Provides read access to an immutable snapshot of a ITextBuffer containing a sequence of Unicode characters. The first character in the sequence has index zero.

ITextSnapshotLine

Immutable information about a line of text from an ITextSnapshot.

ITextVersion

Describes a version of an ITextBuffer. Each application of an ITextEdit to a text buffer generates a new ITextVersion.

ITextVersion2

Describes a version of an ITextBuffer. Each application of an ITextEdit to a text buffer generates a new ITextVersion.

ITrackingPoint

A tracking position in an ITextBuffer.

ITrackingSpan

A span of text in an ITextBuffer that grows or shrinks with changes to the text buffer. The span may be empty.

Enums

EdgeInsertionMode

Specifies the edge insertion modes for read-only regions.

FileActionTypes

Describes the type of file action.

PointTrackingMode

Represents tracking modes for ITrackingPoint objects.

PositionAffinity

Describes whether a position in a ITextBuffer that can be thought of as lying between two characters is coupled to the preceding character or the following character.

ReloadResult

The return value of Reload methods on ITextDocument.

SpanTrackingMode

Represents tracking modes for ITrackingSpan objects.

TrackingFidelityMode

Represents special tracking behaviors for ITrackingPoint and ITrackingSpan objects.

Delegates

CustomTrackToVersion

Provides a custom implementation of span tracking. This delegate should be implemented by custom tracking spans.

DynamicReadOnlyRegionQuery

The callback delegate for notifying read only regions of edits.