ContentTypeChangedEventArgs(ITextSnapshot, ITextSnapshot, IContentType, IContentType, Object) Конструктор

Определение

Инициализирует новый экземпляр ContentTypeChangedEventArgs, используя указанные снимки, созданные до и после изменения, а также типы содержимого до и после изменения.

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)

Параметры

beforeSnapshot
ITextSnapshot

Последний снимок ITextSnapshot перед изменением.

afterSnapshot
ITextSnapshot

Снимок ITextSnapshot, созданный непосредственно после изменения.

beforeContentType
IContentType

Тип IContentType до изменения.

afterContentType
IContentType

Тип IContentType после изменения.

editTag
Object

Произвольный объект, связанный с данным изменением.

Исключения

Одно из значений beforeSnapshot , afterSnapshot , beforeContentType или afterContentType равно null.

Применяется к