IVsDifferenceCodeWindowFactoryService::CreateComparisonCodeWindow Method (IServiceProvider^, String^, String^, String^, __VSDIFFSERVICEOPTIONS)
Visual Studio 2015
Creates an IVsDifferenceCodeWindow showing the differences between two strings or SnapshotSpans.
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.
Return Value
Type: Microsoft.VisualStudio.Editor::IVsDifferenceCodeWindow^The roles can specify multiple roles separated by commas.
Show: