Udostępnij za pośrednictwem


IVsDifferenceCodeWindowFactoryService.CreateComparisonCodeWindow Method

Definition

Overloads

CreateComparisonCodeWindow(IServiceProvider, IVsTextLines, IVsTextLines, String)

Create and IVsDifferenceCodeWindow showing the differences between two buffers.

CreateComparisonCodeWindow(IServiceProvider, String, String, String, __VSDIFFSERVICEOPTIONS)

Create and IVsDifferenceCodeWindow showing the differences between to strings or SnapshotSpans.

CreateComparisonCodeWindow(IServiceProvider, IVsTextLines, IVsTextLines, String)

Create and IVsDifferenceCodeWindow showing the differences between two buffers.

public:
 Microsoft::VisualStudio::Editor::IVsDifferenceCodeWindow ^ CreateComparisonCodeWindow(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ provider, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ left, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ right, System::String ^ roles);
public:
 Microsoft::VisualStudio::Editor::IVsDifferenceCodeWindow ^ CreateComparisonCodeWindow(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ provider, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ left, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ right, Platform::String ^ roles);
Microsoft::VisualStudio::Editor::IVsDifferenceCodeWindow CreateComparisonCodeWindow(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & provider, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & left, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & right, std::wstring const & roles);
public Microsoft.VisualStudio.Editor.IVsDifferenceCodeWindow CreateComparisonCodeWindow (Microsoft.VisualStudio.OLE.Interop.IServiceProvider provider, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines left, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines right, string roles);
abstract member CreateComparisonCodeWindow : Microsoft.VisualStudio.OLE.Interop.IServiceProvider * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * string -> Microsoft.VisualStudio.Editor.IVsDifferenceCodeWindow
Public Function CreateComparisonCodeWindow (provider As IServiceProvider, left As IVsTextLines, right As IVsTextLines, roles As String) As IVsDifferenceCodeWindow

Parameters

provider
IServiceProvider
left
IVsTextLines

The buffer for the left side.

right
IVsTextLines

The buffer for the right side.

roles
String

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

Returns

An IVsDifferenceCodeWindow that displays the differences between left and right.

Remarks

The roles can specify multiple roles separated by commas.

Applies to

CreateComparisonCodeWindow(IServiceProvider, String, String, String, __VSDIFFSERVICEOPTIONS)

Create and IVsDifferenceCodeWindow showing the differences between to strings or SnapshotSpans.

public:
 Microsoft::VisualStudio::Editor::IVsDifferenceCodeWindow ^ CreateComparisonCodeWindow(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ provider, System::String ^ leftFileName, System::String ^ rightFileName, System::String ^ roles, Microsoft::VisualStudio::Shell::Interop::__VSDIFFSERVICEOPTIONS options);
public:
 Microsoft::VisualStudio::Editor::IVsDifferenceCodeWindow ^ CreateComparisonCodeWindow(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ provider, Platform::String ^ leftFileName, Platform::String ^ rightFileName, Platform::String ^ roles, Microsoft::VisualStudio::Shell::Interop::__VSDIFFSERVICEOPTIONS options);
Microsoft::VisualStudio::Editor::IVsDifferenceCodeWindow CreateComparisonCodeWindow(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & provider, std::wstring const & leftFileName, std::wstring const & rightFileName, std::wstring const & roles, Microsoft::VisualStudio::Shell::Interop::__VSDIFFSERVICEOPTIONS options);
public Microsoft.VisualStudio.Editor.IVsDifferenceCodeWindow CreateComparisonCodeWindow (Microsoft.VisualStudio.OLE.Interop.IServiceProvider provider, string leftFileName, string rightFileName, string roles, Microsoft.VisualStudio.Shell.Interop.__VSDIFFSERVICEOPTIONS options);
abstract member CreateComparisonCodeWindow : Microsoft.VisualStudio.OLE.Interop.IServiceProvider * string * string * string * Microsoft.VisualStudio.Shell.Interop.__VSDIFFSERVICEOPTIONS -> Microsoft.VisualStudio.Editor.IVsDifferenceCodeWindow
Public Function CreateComparisonCodeWindow (provider As IServiceProvider, leftFileName As String, rightFileName As String, roles As String, options As __VSDIFFSERVICEOPTIONS) As IVsDifferenceCodeWindow

Parameters

provider
IServiceProvider
leftFileName
String

Name of the file displayed in the difference viewer's LeftView.

rightFileName
String

Name of the file displayed in the difference viewer's RightView.

roles
String

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

options
__VSDIFFSERVICEOPTIONS

Options for the creation of the difference code window.

Returns

An IVsDifferenceCodeWindow that displays the differences between leftFileName and rightFileName.

Remarks

The roles can specify multiple roles separated by commas.

Applies to