다음을 통해 공유


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

  • leftFileName
    Type: String

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

  • rightFileName
    Type: String

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

  • roles
    Type: String

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

Return Value

Type: Microsoft.VisualStudio.Editor.IVsDifferenceCodeWindow

Remarks

The roles can specify multiple roles separated by commas.

.NET Framework Security

See Also

Reference

IVsDifferenceCodeWindowFactoryService Interface

CreateComparisonCodeWindow Overload

Microsoft.VisualStudio.Editor Namespace