void FlushText (ControlBuilder builder, StringBuilder sb) { if (sb.Length > 0) { AddLiteralSubObject (builder, sb.ToString ()); sb.Length = 0; } }