Share via


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

'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

Exceptions

Exception Condition
ArgumentNullException

One of textBuffer, beforeContentType, or afterContentType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

GraphBufferContentTypeChangedEventArgs Class

Microsoft.VisualStudio.Text.Projection Namespace