3 writes to Document
PresentationFramework (3)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
702Document = document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1728this.Document = document;
System\Windows\Controls\SinglePageViewer.cs (1)
512Document = null;
55 references to Document
PresentationFramework (51)
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
554FlowDocument flowDocument = Document as FlowDocument; 713if (value != null && Document != null) 732if (value != null && Document != null)
MS\Internal\Documents\MultiPageTextView.cs (2)
348DynamicDocumentPaginator documentPaginator = _viewer.Document.DocumentPaginator as DynamicDocumentPaginator; 1509IDocumentPaginatorSource document = _viewer.Document;
System\Windows\Annotations\AnnotationHelper.cs (3)
195isFlow = viewer.Document is FlowDocument; 579isFlow = viewer.Document is FlowDocument; 1097if (viewer.Document == null)
System\Windows\Annotations\AnnotationService.cs (6)
185bool isFixed = viewer.Document is FixedDocument || viewer.Document is FixedDocumentSequence; 186bool isFlow = !isFixed && viewer.Document is FlowDocument; 188if (isFixed || isFlow || viewer.Document == null) 1074document = documentViewerBase.Document; 1544isFlow = ((DocumentViewerBase)viewer).Document is FlowDocument;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
112IDocumentPaginatorSource document = ((DocumentViewerBase)Owner).Document;
System\Windows\Controls\DocumentViewer.cs (10)
867if (!(Document is FixedDocument) && !(Document is FixedDocumentSequence) 868&& !(Document == null)) 882_findToolbar.DocumentLoaded = (Document != null) ? true : false; 1822args.CanExecute = (dv.Document != null); 2094_documentScrollInfo.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null; 2129if (_documentScrollInfo.Content != Document) 2159_findToolbar.DocumentLoaded = (Document != null) ? true : false; 2257if (_findToolbar == null || Document == null)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
228/// <see cref="Document"/> 1497args.CanExecute = (dv.Document != null) && (dv._documentWriter == null); 1718if (this.Document != null)
System\Windows\Controls\SinglePageViewer.cs (23)
144FlowDocument flowDocument = Document as FlowDocument; 462DocumentViewerHelper.OnContextMenuOpening(Document as FlowDocument, this, e); 506_oldDocument = Document; 509if (Document != null && !(Document is FlowDocument)) 517if(Document != null) 519DynamicDocumentPaginator dynamicDocumentPaginator = Document.DocumentPaginator as DynamicDocumentPaginator; 525FlowDocumentPaginator flowDocumentPaginator = Document.DocumentPaginator as FlowDocumentPaginator; 650FlowDocument document = Document as FlowDocument; 783DependencyObject document = this.Document as DependencyObject; 801DependencyObject document = this.Document as DependencyObject; 932get { return (_findToolBarHost != null && this.Document != null && this.TextEditor != null); } 962if (this.Document != null && _printingState == null) 964documentPaginator = this.Document.DocumentPaginator as DynamicDocumentPaginator; 994if (Document != null && sender == Document.DocumentPaginator && e != null) 1040if (contentPosition != null && Document != null) 1042DynamicDocumentPaginator documentPaginator = this.Document.DocumentPaginator as DynamicDocumentPaginator; 1043if (documentPaginator != null && IsValidContentPositionForDocument(Document, contentPosition)) 1112((FlowDocument)Document).PagePadding = _printingState.PagePadding; 1113Document.DocumentPaginator.PageSize = _printingState.PageSize; 1177newMasterPageNumber = ((DynamicDocumentPaginator)this.Document.DocumentPaginator).GetPageNumber(_contentPosition) + 1; 1559FlowDocument document = Document as FlowDocument;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
365if (Document != null) 383DocumentPaginator paginator = Document.DocumentPaginator; 537DynamicDocumentPaginator paginator = Document.DocumentPaginator as DynamicDocumentPaginator; 545OnPaginationCompleted(Document, EventArgs.Empty);