3 writes to Document
PresentationFramework (3)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
705Document = document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1745this.Document = document;
System\Windows\Controls\SinglePageViewer.cs (1)
515Document = null;
55 references to Document
PresentationFramework (51)
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
557FlowDocument flowDocument = Document as FlowDocument; 716if (value != null && Document != null) 735if (value != null && Document != null)
MS\Internal\Documents\MultiPageTextView.cs (2)
350DynamicDocumentPaginator documentPaginator = _viewer.Document.DocumentPaginator as DynamicDocumentPaginator; 1511IDocumentPaginatorSource document = _viewer.Document;
System\Windows\Annotations\AnnotationHelper.cs (3)
209isFlow = viewer.Document is FlowDocument; 593isFlow = viewer.Document is FlowDocument; 1111if (viewer.Document == null)
System\Windows\Annotations\AnnotationService.cs (6)
198bool isFixed = viewer.Document is FixedDocument || viewer.Document is FixedDocumentSequence; 199bool isFlow = !isFixed && viewer.Document is FlowDocument; 201if (isFixed || isFlow || viewer.Document == null) 1091document = documentViewerBase.Document; 1561isFlow = ((DocumentViewerBase)viewer).Document is FlowDocument;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
113IDocumentPaginatorSource document = ((DocumentViewerBase)Owner).Document;
System\Windows\Controls\DocumentViewer.cs (10)
879if (!(Document is FixedDocument) && !(Document is FixedDocumentSequence) 880&& !(Document == null)) 894_findToolbar.DocumentLoaded = (Document != null) ? true : false; 1828args.CanExecute = (dv.Document != null); 2098_documentScrollInfo.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null; 2133if (_documentScrollInfo.Content != Document) 2163_findToolbar.DocumentLoaded = (Document != null) ? true : false; 2261if (_findToolbar == null || Document == null)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
244/// <see cref="Document"/> 1512args.CanExecute = (dv.Document != null) && (dv._documentWriter == null); 1735if (this.Document != null)
System\Windows\Controls\SinglePageViewer.cs (23)
147FlowDocument flowDocument = Document as FlowDocument; 465DocumentViewerHelper.OnContextMenuOpening(Document as FlowDocument, this, e); 509_oldDocument = Document; 512if (Document != null && !(Document is FlowDocument)) 520if(Document != null) 522DynamicDocumentPaginator dynamicDocumentPaginator = Document.DocumentPaginator as DynamicDocumentPaginator; 528FlowDocumentPaginator flowDocumentPaginator = Document.DocumentPaginator as FlowDocumentPaginator; 653FlowDocument document = Document as FlowDocument; 784DependencyObject document = this.Document as DependencyObject; 802DependencyObject document = this.Document as DependencyObject; 933get { return (_findToolBarHost != null && this.Document != null && this.TextEditor != null); } 963if (this.Document != null && _printingState == null) 965documentPaginator = this.Document.DocumentPaginator as DynamicDocumentPaginator; 995if (Document != null && sender == Document.DocumentPaginator && e != null) 1041if (contentPosition != null && Document != null) 1043DynamicDocumentPaginator documentPaginator = this.Document.DocumentPaginator as DynamicDocumentPaginator; 1044if (documentPaginator != null && IsValidContentPositionForDocument(Document, contentPosition)) 1113((FlowDocument)Document).PagePadding = _printingState.PagePadding; 1114Document.DocumentPaginator.PageSize = _printingState.PageSize; 1178newMasterPageNumber = ((DynamicDocumentPaginator)this.Document.DocumentPaginator).GetPageNumber(_contentPosition) + 1; 1560FlowDocument document = Document as FlowDocument;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
376if (Document != null) 394DocumentPaginator paginator = Document.DocumentPaginator; 548DynamicDocumentPaginator paginator = Document.DocumentPaginator as DynamicDocumentPaginator; 556OnPaginationCompleted(Document, EventArgs.Empty);