コード例 #1
0
 protected override IReadonlyTextDocument CreateReadonlyTextDocument(string text, System.Text.Encoding enc)
 {
     return(SimpleReadonlyDocument.CreateReadonlyDocumentAsync(new StringTextSource(text, enc)).Result);
 }
コード例 #2
0
        public async Task CreateTextDocumentAsync(string text)
        {
            var textSource = new StringTextSource(text);

            document = await SimpleReadonlyDocument.CreateReadonlyDocumentAsync(textSource);
        }