Hi,

I want to color just some part of text in a Stringbuilder class, any idea how to do it. that text will be drawn using DrawString function of graphics class...

Code:
 FileData fileData = (FileData)this.Data;

            _attributes = new StringBuilder("Variable(s)");
            _attributes.Append("\n");

            if (fileData.Variables.Count == 0)
            {
                _attributes.Append("[None]");
                return;
            }

           for (int i = 0; i < fileData.Variables.Count; i++)
           {
                              _attributes.Append(fileData.Variables[i].Name);
           //Here I want to check some condition and color the text
                _attributes.Append("\n");
             }
thanks in advance