Home > Products > CSHTMLDiff Control > Documentation > User Guide

GotoDiff
Previous  Top  Next


 
Navigate to a specified Difference.  
 
Syntax  
 
Sub GotoDiff(DiffNumber As Integer)  
 
Parameters  
 
DiffNumber  
Zero based number of Diff element to navigate to. Must be a number between 0 and DiffCount-1.  
 
Remarks  
 
Navigates to the difference position specified by DiffNumber. The target difference will be visually marked as the current diff-element.  
The maximum number of differences in the current document can be retrieved using the DiffCount property.  
 
This operation is available only after a valid call to DoDiff.  
 
Sample snapshot:  
 
clip0011  
     
Example  
 
Private Sub GotoDiff_Click()  
' go through all the differences.  
Dim count As Long  
count = diffCtrl1.DiffCount  
 
For i = 1 To count   
   MsgBox "Click Ok for Diff number " & i  
   diffCtrl1.GotoDiff i-1  
Next i   
 
End Sub  
 
See Also  
 
DoDiff, GotoFirstDiff, GotoLastDiff, GotoNextDiff, GotoPrevDiff, DiffCount, Find, Navigation