共用方式為


IBufferGraph.GraphBufferContentTypeChanged Event

Occurs when the IContentType of any ITextBuffer in the buffer graph changes.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'宣告
Event GraphBufferContentTypeChanged As EventHandler(Of GraphBufferContentTypeChangedEventArgs)
event EventHandler<GraphBufferContentTypeChangedEventArgs> GraphBufferContentTypeChanged
 event EventHandler<GraphBufferContentTypeChangedEventArgs^>^ GraphBufferContentTypeChanged {
    void add (EventHandler<GraphBufferContentTypeChangedEventArgs^>^ value);
    void remove (EventHandler<GraphBufferContentTypeChangedEventArgs^>^ value);
}
abstract GraphBufferContentTypeChanged : IEvent<EventHandler<GraphBufferContentTypeChangedEventArgs>,
    GraphBufferContentTypeChangedEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

IBufferGraph Interface

Microsoft.VisualStudio.Text.Projection Namespace