Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Changes the IContentType for this ITextBuffer.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
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
newContentType
Type: Microsoft.VisualStudio.Utilities.IContentTypeThe new IContentType.
editTag
Type: ObjectAn 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.