public CurrentHandle(DocxToFlowDocumentConverter converter, TextElement current) { this.converter = converter; this.converter.AddChild(current); this.previous = this.converter.current; this.converter.current = current; }
private void ReadDocx(string path) { using (var stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { var flowDocumentConverter = new DocxToFlowDocumentConverter(stream); flowDocumentConverter.Read(); FlowDocumentScrollViewer.Document = flowDocumentConverter.Document; this.Title = Path.GetFileName(path); } }