ctlUniRichTextBoxXP.GetFormatRange MethodPermits you to get multiple formatting properties at a timeSyntax
Public Sub GetFormatRange (Optional ByVal bForSelection As Boolean = True, _
Optional ByRef bBold As Boolean, _ Optional ByRef bItalic As Boolean, _ Optional ByRef bUnderline As Boolean, _ Optional ByRef bStrikeout As Boolean, _ Optional ByRef lForeColor As Long, _ Optional ByRef lBackColor As Long, _ Optional ByRef sFontName As String, _ Optional ByRef iFontSize As Long, _ Optional ByRef bProtected As Boolean, _ Optional ByRef bLink As Boolean, _ Optional ByRef iUnderLineType As eCtlRichTextBox_UnderlineType, _ Optional ByRef cRevAuthor As Byte, _ Optional ByRef iStyle As Integer, _ Optional ByRef cAnimation As Byte, _ Optional ByRef iSpacing As Integer) 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)
|