Partager via


ConnectionReason Enumeration

Defines the reasons for connecting or disconnecting a text buffer and a text view.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public Enumeration ConnectionReason
public enum ConnectionReason
public enum class ConnectionReason
type ConnectionReason
public enum ConnectionReason

Members

Member name Description
BufferGraphChange A buffer has been added to or removed from IBufferGraph.
ContentTypeChange The IContentType of the subject buffer has changed.
TextViewLifetime The IWpfTextView has been opened or closed.

Remarks

This enumeration is used in the SubjectBuffersConnected and SubjectBuffersDisconnected methods.

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace