Construtor GraphBufferContentTypeChangedEventArgs
Inicializa uma nova instância de GraphBufferContentTypeChangedEventArgs com o buffer de texto especificado e os tipos de conteúdo antigos e novos.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (em Microsoft.VisualStudio.Text.Data.dll)
Sintaxe
'Declaração
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
)
Parâmetros
textBuffer
Tipo: Microsoft.VisualStudio.Text.ITextBufferO ITextBuffer cujo IContentType foi alterado.
beforeContentType
Tipo: Microsoft.VisualStudio.Utilities.IContentTypeO IContentType antes da alteração.
afterContentType
Tipo: Microsoft.VisualStudio.Utilities.IContentTypeO IContentType após a alteração.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | One of textBuffer, beforeContentType, or afterContentType is nulluma referência nula (Nothing no Visual Basic). |
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.