GraphBufferContentTypeChangedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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更改之后的。
例外
textBuffer、 beforeContentType 或 afterContentType 为 null。