Share via


GraphBufferContentTypeChangedEventArgs Constructor

Definition

Initializes a new instance of GraphBufferContentTypeChangedEventArgs with the specified text buffer and the old and new content types.

public:
 GraphBufferContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Utilities::IContentType ^ beforeContentType, Microsoft::VisualStudio::Utilities::IContentType ^ afterContentType);
public:
 GraphBufferContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Utilities::IContentType ^ beforeContentType, Microsoft::VisualStudio::Utilities::IContentType ^ afterContentType);
 GraphBufferContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer, Microsoft::VisualStudio::Utilities::IContentType const & beforeContentType, Microsoft::VisualStudio::Utilities::IContentType const & afterContentType);
public GraphBufferContentTypeChangedEventArgs (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, Microsoft.VisualStudio.Utilities.IContentType beforeContentType, Microsoft.VisualStudio.Utilities.IContentType afterContentType);
new Microsoft.VisualStudio.Text.Projection.GraphBufferContentTypeChangedEventArgs : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Utilities.IContentType * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.Projection.GraphBufferContentTypeChangedEventArgs
Public Sub New (textBuffer As ITextBuffer, beforeContentType As IContentType, afterContentType As IContentType)

Parameters

textBuffer
ITextBuffer

The ITextBuffer whose IContentType has changed.

beforeContentType
IContentType

The IContentType before the change.

afterContentType
IContentType

The IContentType after the change.

Exceptions

One of textBuffer, beforeContentType, or afterContentType is null.

Applies to