다음을 통해 공유


IVsDifferenceCodeWindowFactoryService.CreateComparisonCodeWindow Method (IServiceProvider, IVsTextLines, IVsTextLines, String)

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, _
    left As IVsTextLines, _
    right As IVsTextLines, _
    roles As String _
) As IVsDifferenceCodeWindow
IVsDifferenceCodeWindow CreateComparisonCodeWindow(
    IServiceProvider provider,
    IVsTextLines left,
    IVsTextLines right,
    string roles
)
IVsDifferenceCodeWindow^ CreateComparisonCodeWindow(
    IServiceProvider^ provider, 
    IVsTextLines^ left, 
    IVsTextLines^ right, 
    String^ roles
)
abstract CreateComparisonCodeWindow : 
        provider:IServiceProvider * 
        left:IVsTextLines * 
        right:IVsTextLines * 
        roles:string -> IVsDifferenceCodeWindow
function CreateComparisonCodeWindow(
    provider : IServiceProvider, 
    left : IVsTextLines, 
    right : IVsTextLines, 
    roles : String
) : IVsDifferenceCodeWindow

Parameters

  • 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
An IVsDifferenceCodeWindow that displays the differences between left and right.

Remarks

The roles can specify multiple roles separated by commas.

.NET Framework Security

See Also

Reference

IVsDifferenceCodeWindowFactoryService Interface

CreateComparisonCodeWindow Overload

Microsoft.VisualStudio.Editor Namespace