GraphBufferContentTypeChangedEventArgs Constructor
Initializes a new instance of GraphBufferContentTypeChangedEventArgs with the specified text buffer and the old and new content types.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaração
Public Sub New ( _
textBuffer As ITextBuffer, _
beforeContentType As IContentType, _
afterContentType As IContentType _
)
public GraphBufferContentTypeChangedEventArgs(
ITextBuffer textBuffer,
IContentType beforeContentType,
IContentType afterContentType
)
public:
GraphBufferContentTypeChangedEventArgs(
ITextBuffer^ textBuffer,
IContentType^ beforeContentType,
IContentType^ afterContentType
)
new :
textBuffer:ITextBuffer *
beforeContentType:IContentType *
afterContentType:IContentType -> GraphBufferContentTypeChangedEventArgs
public function GraphBufferContentTypeChangedEventArgs(
textBuffer : ITextBuffer,
beforeContentType : IContentType,
afterContentType : IContentType
)
Parameters
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer whose IContentType has changed.
- beforeContentType
Type: Microsoft.VisualStudio.Utilities.IContentType
The IContentType before the change.
- afterContentType
Type: Microsoft.VisualStudio.Utilities.IContentType
The IContentType after the change.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | One of textBuffer, beforeContentType, or afterContentType is nulla null reference (Nothing in Visual Basic). |
.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.