ContentTypeChangedEventArgs Constructor

Definition

Initializes a new instance of ContentTypeChangedEventArgs with the specified before and after snapshots and before and after content types.

public:
 ContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ afterSnapshot, Microsoft::VisualStudio::Utilities::IContentType ^ beforeContentType, Microsoft::VisualStudio::Utilities::IContentType ^ afterContentType, System::Object ^ editTag);
public:
 ContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ afterSnapshot, Microsoft::VisualStudio::Utilities::IContentType ^ beforeContentType, Microsoft::VisualStudio::Utilities::IContentType ^ afterContentType, Platform::Object ^ editTag);
 ContentTypeChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot const & beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & afterSnapshot, Microsoft::VisualStudio::Utilities::IContentType const & beforeContentType, Microsoft::VisualStudio::Utilities::IContentType const & afterContentType, winrt::Windows::Foundation::IInspectable const & editTag);
public ContentTypeChangedEventArgs (Microsoft.VisualStudio.Text.ITextSnapshot beforeSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot afterSnapshot, Microsoft.VisualStudio.Utilities.IContentType beforeContentType, Microsoft.VisualStudio.Utilities.IContentType afterContentType, object editTag);
new Microsoft.VisualStudio.Text.ContentTypeChangedEventArgs : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Utilities.IContentType * Microsoft.VisualStudio.Utilities.IContentType * obj -> Microsoft.VisualStudio.Text.ContentTypeChangedEventArgs
Public Sub New (beforeSnapshot As ITextSnapshot, afterSnapshot As ITextSnapshot, beforeContentType As IContentType, afterContentType As IContentType, editTag As Object)

Parameters

beforeSnapshot
ITextSnapshot

The most recent ITextSnapshot before the change occurred.

afterSnapshot
ITextSnapshot

The ITextSnapshot immediately after the change occurred.

beforeContentType
IContentType

The IContentType before the change occurred.

afterContentType
IContentType

The IContentType after the change occurred.

editTag
Object

An arbitrary object associated with this change.

Exceptions

One of beforeSnapshot, afterSnapshot, beforeContentType, or afterContentType is null.

Applies to