public TextBlock (TextBlockType type, string content) { Content = content; Type = type; Length = content.Length; }