public TempTextLineCopyContext(TextLineBox textline, out Typography.Text.TextBufferSpan buffSpan) { _tempStBuilder = StringBuilderPool <StringBuilderPoolOwner> .GetFreeStringBuilder(); textline.CopyLineContent(_tempStBuilder); int len = _tempStBuilder.Length; char[] charBuffer = new char[len]; _tempStBuilder.CopyTo(0, charBuffer, 0, len); buffSpan = new Typography.Text.TextBufferSpan(charBuffer); }
// public void CopyLineContent(StringBuilder stBuilder) => _currentLine.CopyLineContent(stBuilder);