Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
'Declaration
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.ITextBufferThe ITextBuffer whose IContentType has changed.
beforeContentType
Type: Microsoft.VisualStudio.Utilities.IContentTypeThe IContentType before the change.
afterContentType
Type: Microsoft.VisualStudio.Utilities.IContentTypeThe 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.