GraphBufferContentTypeChangedEventArgs 构造函数

定义

GraphBufferContentTypeChangedEventArgs使用指定的文本缓冲区和新旧内容类型初始化的新实例。

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)

参数

textBuffer
ITextBuffer

ITextBuffer IContentType 已发生更改的。

beforeContentType
IContentType

IContentType更改之前的。

afterContentType
IContentType

IContentType更改之后的。

例外

textBufferbeforeContentTypeafterContentType 为 null。

适用于