IVsDifferenceCodeWindowFactoryService::CreateComparisonCodeWindow Method (IServiceProvider^, IVsTextLines^, IVsTextLines^, String^)
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, IVsTextLines^ left, IVsTextLines^ right, String^ roles )
Parameters
- provider
-
Type:
Microsoft.VisualStudio.OLE.Interop::IServiceProvider^
The service provider
- left
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
The buffer for the left side.
- right
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
The buffer for the right side.
- roles
-
Type:
System::String^
The TextViewRoleAttribute objects that will be added to the three views of the difference viewer.
Return Value
Type: Microsoft.VisualStudio.Editor::IVsDifferenceCodeWindow^An IVsDifferenceCodeWindow that displays the differences between left and right.
The roles can specify multiple roles separated by commas.
Show: