Unicode Controls & Classes for VB6 - Version 4

ctlUniRichTextBoxXP.SetFormatRange Method

Permits you to set multiple formatting properties at a time

Syntax
Public Sub SetFormatRange (Optional ByVal iSelectionMode As eCtlRichTextBox_SetFormatRange = ercSetFormatSelection, _
Optional ByRef bBold As Variant, _
Optional ByRef bItalic As Variant, _
Optional ByRef bUnderline As Variant, _
Optional ByRef bStrikeout As Variant, _
Optional ByRef lForeColor As Variant, _
Optional ByRef lBackColor As Variant, _
Optional ByRef sFontName As Variant, _
Optional ByRef iFontSize As Variant, _
Optional ByRef bProtected As Variant, _
Optional ByRef bLink As Variant, _
Optional ByVal iUnderLineType As eCtlRichTextBox_UnderlineType = ecrtbu_UNDERLINE, _
Optional ByRef cRevAuthor As Variant, _
Optional ByRef iStyle As Variant, _
Optional ByRef cAnimation As Variant, _
Optional ByRef iSpacing As Variant)
Parameters
Parameter Description
Optional ByVal iSelectionMode As eCtlRichTextBox_SetFormatRange = ercSetFormatSelection Type of selection mode
Optional ByRef bBold As Variant Assign Bold
Optional ByRef bItalic As Variant Assign Italic
Optional ByRef bUnderline As Variant Assign Underline
Optional ByRef bStrikeout As Variant Assign Strikeout
Optional ByRef lForeColor As Variant Assign the forecolot
Optional ByRef lBackColor As Variant Assign the backcolor
Optional ByRef sFontName As Variant Assign the font name
Optional ByRef iFontSize As Variant Assign the font size
Optional ByRef bProtected As Variant Assign the protected attribute
Optional ByRef bLink As Variant Assign the link attribute
Optional ByVal iUnderLineType As eCtlRichTextBox_UnderlineType = ecrtbu_UNDERLINE Assign the underline type
Optional ByRef cRevAuthor As Variant Assign the Revision Author
Optional ByRef iStyle As Variant Assign the style
Optional ByRef cAnimation As Variant Assign the animation flag
Optional ByRef iSpacing As Variant Assign the spacing
Remarks
Colors parameters (lForeColor, lBackColor) can be set (or returned by the control) equal to -1&; in this case colors these are automatic (CFE_AUTOCOLOR = vbWindowText / CFE_AUTOBACKCOLOR = vbWindowBackground)