Partager via


ITextBuffer.ContentType Property

Gets the content type of the text in the buffer.

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

Syntax

'Declaration
ReadOnly Property ContentType As IContentType
IContentType ContentType { get; }
property IContentType^ ContentType {
    IContentType^ get ();
}
abstract ContentType : IContentType with get
function get ContentType () : IContentType

Property Value

Type: Microsoft.VisualStudio.Utilities.IContentType
The content type of the text in the buffer.

.NET Framework Security

See Also

Reference

ITextBuffer Interface

Microsoft.VisualStudio.Text Namespace