Alexandria.RichTextBuilder.Append C# (CSharp) Method

Append() public method

Add a character to the end, escaping invalid characters as necessary.
public Append ( char value ) : void
value char
return void
        public void Append(char value)
        {
            switch (value) {
                case '\\': Content.Append(@"\\"); break;
                case '{': Content.Append(@"\{"); break;
                case '}': Content.Append(@"\}"); break;
                case '\n': Content.Append("\\par\r\n"); break;
                case '\r': break;

                default:
                    if(value > 127) {
                        Content.Append(@"\u");
                        Content.Append((int)value);
                        Content.Append('?');
                    } else
                        Content.Append(value);
                    break;
            }
        }

Same methods

RichTextBuilder::Append ( object value ) : void
RichTextBuilder::Append ( string text ) : void