ContentTypeChangedEventArgs Constructor (ITextSnapshot^, ITextSnapshot^, IContentType^, IContentType^, Object^)

 

Initializes a new instance of ContentTypeChangedEventArgs with the specified before and after snapshots and before and after content types.

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

public:
ContentTypeChangedEventArgs(
	ITextSnapshot^ beforeSnapshot,
	ITextSnapshot^ afterSnapshot,
	IContentType^ beforeContentType,
	IContentType^ afterContentType,
	Object^ editTag
)

Parameters

beforeSnapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The most recent ITextSnapshot before the change occurred.

afterSnapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The ITextSnapshot immediately after the change occurred.

beforeContentType
Type: Microsoft.VisualStudio.Utilities::IContentType^

The IContentType before the change occurred.

afterContentType
Type: Microsoft.VisualStudio.Utilities::IContentType^

The IContentType after the change occurred.

editTag
Type: System::Object^

An arbitrary object associated with this change.

Exception Condition
ArgumentNullException

One of beforeSnapshot, afterSnapshot, beforeContentType, or afterContentType is null.

Return to top
Show: