ContentTypeChangedEventArgs(ITextSnapshot, ITextSnapshot, IContentType, IContentType, Object) Construtor
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância do ContentTypeChangedEventArgs com o especificado antes e depois de instantâneos e os tipos de conteúdo before e After.
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)
Parâmetros
- beforeSnapshot
- ITextSnapshot
O mais recente ITextSnapshot antes de a alteração ter ocorrido.
- afterSnapshot
- ITextSnapshot
ITextSnapshotImediatamente depois que a alteração ocorreu.
- beforeContentType
- IContentType
O IContentType antes de a alteração ter ocorrido.
- afterContentType
- IContentType
O IContentType depois que a alteração ocorreu.
- editTag
- Object
Um objeto arbitrário associado a essa alteração.
Exceções
Um de beforeSnapshot , afterSnapshot , beforeContentType ou afterContentType é nulo.