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)
Syntax
'Declaration
Function CreateComparisonCodeWindow ( _
provider As IServiceProvider, _
leftFileName As String, _
rightFileName As String, _
roles As String, _
options As __VSDIFFSERVICEOPTIONS _
) As IVsDifferenceCodeWindow
IVsDifferenceCodeWindow CreateComparisonCodeWindow(
IServiceProvider provider,
string leftFileName,
string rightFileName,
string roles,
__VSDIFFSERVICEOPTIONS options
)
IVsDifferenceCodeWindow^ CreateComparisonCodeWindow(
IServiceProvider^ provider,
String^ leftFileName,
String^ rightFileName,
String^ roles,
__VSDIFFSERVICEOPTIONS options
)
abstract CreateComparisonCodeWindow :
provider:IServiceProvider *
leftFileName:string *
rightFileName:string *
roles:string *
options:__VSDIFFSERVICEOPTIONS -> IVsDifferenceCodeWindow
function CreateComparisonCodeWindow(
provider : IServiceProvider,
leftFileName : String,
rightFileName : String,
roles : String,
options : __VSDIFFSERVICEOPTIONS
) : IVsDifferenceCodeWindow
Parameters
provider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProviderThe service provider
leftFileName
Type: StringThe name of the file displayed in the difference viewer's LeftView.
rightFileName
Type: StringThe name of the file displayed in the difference viewer's RightView.
roles
Type: StringThe TextViewRoleAttribute objects that will be added to the three views of the difference viewer.
options
Type: Microsoft.VisualStudio.Shell.Interop.__VSDIFFSERVICEOPTIONSAn IVsDifferenceCodeWindow that displays the differences between leftFileName and rightFileName.
Return Value
Type: Microsoft.VisualStudio.Editor.IVsDifferenceCodeWindow
Remarks
The roles can specify multiple roles separated by commas.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDifferenceCodeWindowFactoryService Interface