3 writes to Document
PresentationFramework (3)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
702Document = document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1740this.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)
197isFlow = viewer.Document is FlowDocument; 581isFlow = viewer.Document is FlowDocument; 1099if (viewer.Document == null)
System\Windows\Annotations\AnnotationService.cs (6)
186bool isFixed = viewer.Document is FixedDocument || viewer.Document is FixedDocumentSequence; 187bool isFlow = !isFixed && viewer.Document is FlowDocument; 189if (isFixed || isFlow || viewer.Document == null) 1079document = documentViewerBase.Document; 1549isFlow = ((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; 1816args.CanExecute = (dv.Document != null); 2086_documentScrollInfo.Content = (Document != null) ? Document.DocumentPaginator as DynamicDocumentPaginator : null; 2121if (_documentScrollInfo.Content != Document) 2151_findToolbar.DocumentLoaded = (Document != null) ? true : false; 2249if (_findToolbar == null || Document == null)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
239/// <see cref="Document"/> 1507args.CanExecute = (dv.Document != null) && (dv._documentWriter == null); 1730if (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; 781DependencyObject document = this.Document as DependencyObject; 799DependencyObject document = this.Document as DependencyObject; 930get { return (_findToolBarHost != null && this.Document != null && this.TextEditor != null); } 960if (this.Document != null && _printingState == null) 962documentPaginator = this.Document.DocumentPaginator as DynamicDocumentPaginator; 992if (Document != null && sender == Document.DocumentPaginator && e != null) 1038if (contentPosition != null && Document != null) 1040DynamicDocumentPaginator documentPaginator = this.Document.DocumentPaginator as DynamicDocumentPaginator; 1041if (documentPaginator != null && IsValidContentPositionForDocument(Document, contentPosition)) 1110((FlowDocument)Document).PagePadding = _printingState.PagePadding; 1111Document.DocumentPaginator.PageSize = _printingState.PageSize; 1175newMasterPageNumber = ((DynamicDocumentPaginator)this.Document.DocumentPaginator).GetPageNumber(_contentPosition) + 1; 1557FlowDocument document = Document as FlowDocument;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
369if (Document != null) 387DocumentPaginator paginator = Document.DocumentPaginator; 541DynamicDocumentPaginator paginator = Document.DocumentPaginator as DynamicDocumentPaginator; 549OnPaginationCompleted(Document, EventArgs.Empty);