public FormattedText(IFlags flags, IElementFrameFactory frameFactory, ITextScoper textScoper) { this.text = string.Empty; this.flags = flags; this.frame = frameFactory.Create(flags); this.textScoper = textScoper; }