private void SetLineColor(int position, string line, int indentationCount, NuGenBaseLineDescriptor lineDescriptor) { int indentation = indentationCount * IndentationSize; position += indentation; line = line.Substring(indentation); SelectionStart = position; SelectionLength = line.Length; SetColor(lineDescriptor.BackColor, lineDescriptor.ForeColor); }
private void SetLineColor(int position, string line, int indentationCount, NuGenBaseLineDescriptor lineDescriptor) { int indentation = indentationCount * IndentationSize; position += indentation; line = line.Substring(indentation); SelectionStart = position; SelectionLength = line.Length; SetColor(lineDescriptor.BackColor, lineDescriptor.ForeColor); }