Home > Products > CSHTMLDiff Control > Documentation > User Guide

ReviewAcceptDiff
Previous  Top  Next


 
Perform an 'Accept Change' operation on the specified Diff.  
 
Syntax  
 
Sub ReviewAcceptDiff(diffNum As Long)  
 
Parameters  
 
diffNum  
Zero based index of the Diff number to Accept. It must be a number between 0 and DiffCount-1  
 
Remarks  
 
Accepts the specified change in the displayed results.  
The visual effect of this is that any deleted element relevant to the specified Difference will become hidden, and any added elements will become part of the contents.  
 
A single Difference may contain more than one changed element which can be affected by a single ReviewAcceptDiff operation.  
 
This operation is available only after a valid call to DoDiff.  
 
Example  
 
Private Sub AcceptDiff_Click()  
' Accept the Diff specified by the Text-Box 'txtNum'.  
diffCtrl1.ReviewAcceptDiff CInt(txtNum.Text)  
 
End Sub  
 
See Also  
 
DoDiff, DiffCount, Reviewing Changes, Diff Specification