ITextDataModel Interface

Definition

Prepares the ITextBuffer for presentation in the editor.

public interface ITextDataModel

Remarks

Typically the ITextDataModel consists of a single ITextBuffer that acts as both the DocumentBuffer and the DataBuffer.

However, in some cases, a graph of IProjectionBuffer objects can be presented as if they were a single document. In that case, the DataBuffer is an IProjectionBuffer that uses the DocumentBuffer as a source buffer, directly or indirectly.

The ContentType of an ITextDataModel usually is the same as that of the DocumentBuffer.

Properties

ContentType

The IContentType of the text data model.

DataBuffer

Gets the ITextBuffer that should be presented in the editor.

DocumentBuffer

Gets the ITextBuffer that corresponds to a document in the file system.

Events

ContentTypeChanged

Raised when the ContentType of this text data model changes.

Applies to