2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
336Document = document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1821Document = 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)
138RenderScope.Document = Document; 214FlowDocument flowDocument = Document; 350/// <see cref="Document"/> 544if (Document != null) 554paginator = ((IDocumentPaginatorSource)Document).DocumentPaginator as FlowDocumentPaginator; 559PagePadding = Document.PagePadding, 561ColumnWidth = Document.ColumnWidth 585pagePadding = Document.ComputePageMargin(); 586Document.PagePadding = new Thickness( 591Document.ColumnWidth = double.PositiveInfinity; 739DocumentViewerHelper.OnContextMenuOpening(Document, this, e); 767if (HasLogicalChildren && Document != null) 769return new SingleChildEnumerator(Document); 798DependencyObject document = this.Document as DependencyObject; 816DependencyObject document = this.Document as DependencyObject; 881get { return (_findToolBarHost != null && Document != null && _textEditor != null); } 972if (Document != null) 975Document.StructuralCache.TextContainer.TextView = textView; 983Document != null && 985Document.StructuralCache.TextContainer.TextSelection == null) 987_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false) 1070Document.PagePadding = _printingState.PagePadding; 1071Document.ColumnWidth = _printingState.ColumnWidth; 1072((IDocumentPaginatorSource)Document).DocumentPaginator.PageSize = _printingState.PageSize; 1094if (args != null && args.TargetObject != null && Document != null) 1096document = Document; 1406args.CanExecute = (viewer.Document != null); 1813if (this.Document != null) 1862if (Document != null) 1864service = ((IServiceProvider)Document).GetService(serviceType); 1921FlowDocument document = Document;