2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
336Document = document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1806Document = value as FlowDocument;
40 references to Document
PresentationFramework (40)
MS\Internal\Documents\IFlowDocumentViewer.cs (7)
217if (newTextSelection != null && Document != null && IsValidTextSelectionForDocument(newTextSelection, Document)) 219ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 350if (value != null && Document != null) 369if (value != null && Document != null) 398get { return (Document != null) ? 1 : 0; } 406get { return (Document != null) ? 1 : 0; }
System\Windows\Annotations\AnnotationService.cs (1)
1091document = docScrollViewer.Document;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
89FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
135RenderScope.Document = Document; 211FlowDocument flowDocument = Document; 347/// <see cref="Document"/> 541if (Document != null) 551paginator = ((IDocumentPaginatorSource)Document).DocumentPaginator as FlowDocumentPaginator; 556PagePadding = Document.PagePadding, 558ColumnWidth = Document.ColumnWidth 582pagePadding = Document.ComputePageMargin(); 583Document.PagePadding = new Thickness( 588Document.ColumnWidth = double.PositiveInfinity; 736DocumentViewerHelper.OnContextMenuOpening(Document, this, e); 764if (HasLogicalChildren && Document != null) 766return new SingleChildEnumerator(Document); 795DependencyObject document = this.Document as DependencyObject; 813DependencyObject document = this.Document as DependencyObject; 878get { return (_findToolBarHost != null && Document != null && _textEditor != null); } 966if (Document != null) 969Document.StructuralCache.TextContainer.TextView = textView; 977Document != null && 979Document.StructuralCache.TextContainer.TextSelection == null) 981_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false) 1064Document.PagePadding = _printingState.PagePadding; 1065Document.ColumnWidth = _printingState.ColumnWidth; 1066((IDocumentPaginatorSource)Document).DocumentPaginator.PageSize = _printingState.PageSize; 1088if (args != null && args.TargetObject != null && Document != null) 1090document = Document; 1394args.CanExecute = (viewer.Document != null); 1798if (this.Document != null) 1847if (Document != null) 1849service = ((IServiceProvider)Document).GetService(serviceType); 1906FlowDocument document = Document;