'lineNo is the 1 based line number to set.  If color is None, default color is used.'

def SetLineColor(self, lineNo, color):

    if isRichText:
        info = self._PrepareUserStateChange()
        try:
            if (color is None):
                color = self.defCharFormat[4]
            lineNo = (lineNo - 1)
            startIndex = self.LineIndex(lineNo)
            if (startIndex != (-1)):
                self.SetSel(startIndex, self.LineIndex((lineNo + 1)))
                self.SetSelectionCharFormat((win32con.CFM_COLOR, 0, 0, 0, color))
        finally:
            self._EndUserStateChange(info)
