Microsoft.VisualStudio.Text Namespace

Classes

AbstractSelectionPresentationProperties
ContentTypeChangedEventArgs

Provides information about the ContentTypeChanged event.

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 that affect 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 for the ContentTypeChanged event.

TextDocumentEventArgs

Provides information for events raised 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.

Selection
SnapshotPoint

An immutable text position in a particular text snapshot.

SnapshotSpan

An immutable text span in a particular text snapshot.

Span

Represents a range.

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 the range between two VirtualSnapshotPoint objects.

Interfaces

IDeleteEditTag
IEditTag
IEncodingDetector

Attempts to detect the 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.

IFormattingEditTag
IFormattingNeededEditTag
IInviolableEditTag
IInvisibleEditTag
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
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 a 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 IPersistentSpan objects.

IReadOnlyRegion

Tracks a possibly empty read-only region of text.

IReadOnlyRegionEdit

Represents a set of read-only region editing operations (creating and removing read-only regions on an ITextBuffer.

IRemoteEditTag
ISelectionTransformer
ITextBuffer

A mutable sequence of Unicode (UTF-16) 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 text buffers.

ITextBufferFactoryService3

The factory service for ordinary TextBuffers.

ITextChange

Describes a single contiguous text change operation on the text buffer.

ITextChange2

Indicates whether the change is opaque.

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.

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.

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 that contains a sequence of Unicode characters.

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

Represents 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
IUndoEditTag
IUserEditTag

Enums

EdgeInsertionMode

Defines 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
ReloadResult

Represents the possible results of reloading a text document.

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 for notifying read-only regions of edits.