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
provider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProviderThe service provider
left
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLinesThe buffer for the left side.
right
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLinesThe buffer for the right side.
roles
Type: StringThe 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
- 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