IVsDifferenceCodeWindowFactoryService::CreateComparisonCodeWindow Method (IServiceProvider^, String^, String^, String^, __VSDIFFSERVICEOPTIONS)

 

Creates an IVsDifferenceCodeWindow showing the differences between two strings or SnapshotSpans.

Namespace:   Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

IVsDifferenceCodeWindow^ CreateComparisonCodeWindow(
	IServiceProvider^ provider,
	String^ leftFileName,
	String^ rightFileName,
	String^ roles,
	__VSDIFFSERVICEOPTIONS options
)

Parameters

provider
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

The service provider

leftFileName
Type: System::String^

The name of the file displayed in the difference viewer's LeftView.

rightFileName
Type: System::String^

The name of the file displayed in the difference viewer's RightView.

roles
Type: System::String^

The TextViewRoleAttribute objects that will be added to the three views of the difference viewer.

options
Type: Microsoft.VisualStudio.Shell.Interop::__VSDIFFSERVICEOPTIONS

An IVsDifferenceCodeWindow that displays the differences between leftFileName and rightFileName.

The roles can specify multiple roles separated by commas.

Return to top
Show: