ctlUniRichTextBoxXP.SetFormatRange MethodPermits you to set multiple formatting properties at a timeSyntax
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
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)
|