public void ToRichText(RichTextBuilder builder)
{
if (IsTarget) {
builder.ForegroundColor = Color.Blue;
builder.AppendFormat("<{0}> ", AddressString);
}
if (IsFunction)
builder.ForegroundColor = Color.DarkGreen;
else if (IsPointer)
builder.ForegroundColor = Color.Purple;
builder.Append(ToStringValue());
if (IsInvalid) {
builder.ForegroundColor = Color.Red;
builder.Append(" <<" + Errors.Replace("\n", "; ") + ">>");
}
builder.ForegroundColor = Color.Black;
}