ITextBuffer.ChangeContentType Method
Changes the IContentType for this ITextBuffer.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
声明
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
)
- newContentType
Type: Microsoft.VisualStudio.Utilities.IContentType
The new IContentType.
- editTag
Type: System.Object
An object associated with this edit transaction.
Exception | Condition |
---|---|
ArgumentNullException | newContentType is nulla null reference (Nothing in Visual Basic). |
InvalidOperationException | Another ITextBufferEdit object is active for this ITextBuffer. |
- 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.