예제 #1
0
        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);
        }
예제 #2
0
 //
 public void CopyLineContent(StringBuilder stBuilder) => _currentLine.CopyLineContent(stBuilder);