Partilhar via


ITextDataModel Interface

Definition

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.

public interface class ITextDataModel
public interface class ITextDataModel
__interface ITextDataModel
public interface ITextDataModel
type ITextDataModel = interface
Public Interface ITextDataModel

Remarks

The ContentType usually is the same as that of the DocumentBuffer

Properties

ContentType

The IContentType of the text data model. Usually this is the same as the IContentType of the DocumentBuffer but it need not be.

DataBuffer

Gets the ITextBuffer that should be presented in the editor.

DocumentBuffer

Gets the ITextBuffer corresponding to a document in the file system.

Events

ContentTypeChanged

Raised when the ContentType of this text data model changes.

Applies to