다음을 통해 공유


ITextDataModel Interface

Prepares the ITextBuffer for presentation in the editor.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

‘선언
Public Interface ITextDataModel
public interface ITextDataModel
public interface class ITextDataModel
type ITextDataModel =  interface end
public interface ITextDataModel

The ITextDataModel type exposes the following members.

Properties

  Name Description
Public property ContentType The IContentType of the text data model.
Public property DataBuffer Gets the ITextBuffer that should be presented in the editor.
Public property DocumentBuffer Gets the ITextBuffer that corresponds to a document in the file system.

Top

Events

  Name Description
Public event ContentTypeChanged Raised when the ContentType of this text data model changes.

Top

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.

See Also

Reference

Microsoft.VisualStudio.Text Namespace