Freigeben über


GraphBufferContentTypeChangedEventArgs-Konstruktor

Initialisiert eine neue Instanz von GraphBufferContentTypeChangedEventArgs mit dem angegebenen Textpuffer und dem alten und neuen Inhaltstyp.

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
)

Parameter

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Eines der textBuffer, beforeContentTypeoder afterContentType ist nullein Nullverweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

GraphBufferContentTypeChangedEventArgs Klasse

Microsoft.VisualStudio.Text.Projection-Namespace