Compartilhar via


ITextSnapshot.ContentType Property

Gets the IContentType of the TextBuffer when this snapshot was current.

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 IContentType.

.NET Framework Security

See Also

Reference

ITextSnapshot Interface

Microsoft.VisualStudio.Text Namespace