Condividi tramite


ITextBuffer.ChangeContentType Method

Changes the IContentType for this ITextBuffer.

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

Syntax

'Dichiarazione
Sub ChangeContentType ( _
    newContentType As IContentType, _
    editTag As Object _
)
void ChangeContentType(
    IContentType newContentType,
    Object editTag
)
void ChangeContentType(
    IContentType^ newContentType, 
    Object^ editTag
)
abstract ChangeContentType : 
        newContentType:IContentType * 
        editTag:Object -> unit 
function ChangeContentType(
    newContentType : IContentType, 
    editTag : Object
)

Parameters

  • editTag
    Type: System.Object
    An object associated with this edit transaction.

Exceptions

Exception Condition
ArgumentNullException

newContentType is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

Another ITextBufferEdit object is active for this ITextBuffer.

.NET Framework Security

See Also

Reference

ITextBuffer Interface

Microsoft.VisualStudio.Text Namespace