Microsoft.VisualStudio.Text Namespace

Classes

AbstractSelectionPresentationProperties

Provides UI specific properties about an Selection.

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.

SnapshotPointEventArgs

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

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

Extension methods for working with ITextImage

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.

NormalizedSpanCollection.Enumerator

A stack allocated enumerator for NormalizedSpanCollection.

Selection

Manages the insertion, anchor, and active points for a single caret and its associated selection.

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 span 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

IDeleteEditTag

Indicates that the edit is the result of the user typing hitting a backspace or delete.

IEditTag

Interface that can be used for the CreateEdit(EditOptions, Nullable<Int32>, Object) editTag parameter.

IEncodingDetector

Attempts to detect a text encoding associated with a stream.

IExtensionErrorHandler

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

IExtensionErrorHandler2

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

IExtensionPerformanceTracker

Allows editor hosts to track performance of extension points.

IFormattingEditTag

Indicates that the edit is part of automatic formatting.

IFormattingNeededEditTag

Indicates that the edit is something like a "paste" where the modified text should be formatted.

IInviolableEditTag

Indicates a constraint that no additional edits should be performed in the buffer's Changed event handlers called in response to this edit.

IInvisibleEditTag

Indicates that this edit will create an invisible undo transaction.

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.

IMultiSelectionBroker

Manages all the caret and selecting behavior for an ITextView. Handles multiple selections, and box selection. Throughout this namespace carets are considered to be part of Selections, and are represented by InsertionPoint.

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.

IOvertypeManager

A per text view manager for overtype.

IOvertypeManagerFactory

A service that returns an IOvertypeManager that manages overtype for a particular ITextView.

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.

IProxyEditTag

Indicates that the edit is perfomed on behalf of the user, and will be undone by the entity which performed the edit.

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.

IRemoteEditTag

Indicates that the edit is from a remote collaborator.

ISelectionTransformer

Allows changing existing Selection objects as part of PerformActionOnAllSelections(Action<ISelectionTransformer>) and TryPerformActionOnSelection(Selection, Action<ISelectionTransformer>, Selection).

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.

ITextBufferContentTypeListener

Allows extensions to track content type changes in ITextBuffers.

ITextBufferEdit

Represents edit operations against a ITextBuffer.

ITextBufferFactoryService

The factory service for ordinary TextBuffers.

ITextBufferFactoryService2

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 oldText with newText.

Insertion is a text change in which oldText is an empty string and newText a non-empty string.

Deletion is a text change in which oldText is a non-empty string and newText is an empty string.

Modification is a text change in which both oldText and newText are non-empty strings.

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.

ITextDocumentFactoryService2
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.

ITypingEditTag

Indicates that the edit is the result of the user typing a character.

IUndoEditTag

Indicates that the edit is part of an undo or redo.

IUserEditTag

Indicates that the edit is a direct result of a user action (e.g. typing) as opposed to a side-effect (e.g. the automatic formatting after the user types a semicolon).

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.

PredefinedSelectionTransformations

Defines a set of actions that are predefined for manipulating selections within a view. For custom manipulations see the usage of ISelectionTransformer. These transformations can be passed in to PerformActionOnAllSelections(PredefinedSelectionTransformations), TryPerformActionOnSelection(Selection, PredefinedSelectionTransformations, Selection), and PerformAction(PredefinedSelectionTransformations).

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.