Home > Products > CSHTMLDiff Control > Documentation > User Guide

ChangeFont
Previous  Top  Next


Sets the font face, style color and background color for the deleted, inserted and normal fonts at runtime.  
 
Syntax  
 
Sub ChangeFont(ignoreVisualPrefs As Boolean, type As Integer, face As String,size As Long, fgColor As Long,  
bgColor As Long, isBold As Boolean, isItalic As Boolean, isUnderline As Boolean, isStrikeout As Boolean)  
 
Parameters  
 
ignoreVisualPrefs  
   Set this value to TRUE in order to overwrite the font size and face also in HTML Visual view. This option only affects Deleted and    Inserted text.  
 
type  
   Which font to alter; 0 - Normal text; 1 - Deleted text, 2 - Inserted text.  
   'Normal text' size and face can only be altered in text and source mode.  
 
face  
   New font face.  
 
size  
   New font size in pixels.  
 
fgColor  
   New foreground font color. This color must be represented by its decimal value  
 
bgColor  
   New background font color. This color must be represented by its decimal value  
 
isBold  
   Set to TRUE if font desired font is Bold  
 
isItalic  
   Set to TRUE if font desired font is Bold  
 
isUnderline  
   Set to TRUE if font desired font is Bold  
 
isStrikeout  
   Set to TRUE if font desired font is Bold  
 
 
Remarks  
 
Font face and size changes will not effect the appearance in HTML Visual mode.  
 
Example  
 
Private Sub SetGenVals_Click()  
   diffCtrl1.ChangeFont True, 1, "Arial", 10, 16711680, 16776960, True, False, False, False  
End Sub  
 
See Also  
 
SaveResultAs