2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
352Document = document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1861Document = value as FlowDocument;
40 references to Document
PresentationFramework (40)
MS\Internal\Documents\IFlowDocumentViewer.cs (7)
221if (newTextSelection != null && Document != null && IsValidTextSelectionForDocument(newTextSelection, Document)) 223ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 366if (value != null && Document != null) 385if (value != null && Document != null) 414get { return (Document != null) ? 1 : 0; } 422get { return (Document != null) ? 1 : 0; }
System\Windows\Annotations\AnnotationService.cs (1)
1109document = docScrollViewer.Document;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
91FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
142RenderScope.Document = Document; 218FlowDocument flowDocument = Document; 354/// <see cref="Document"/> 548if (Document != null) 561paginator = ((IDocumentPaginatorSource)Document).DocumentPaginator as FlowDocumentPaginator; 565_printingState.PagePadding = Document.PagePadding; 567_printingState.ColumnWidth = Document.ColumnWidth; 590pagePadding = Document.ComputePageMargin(); 591Document.PagePadding = new Thickness( 596Document.ColumnWidth = double.PositiveInfinity; 747DocumentViewerHelper.OnContextMenuOpening(Document, this, e); 775if (HasLogicalChildren && Document != null) 777return new SingleChildEnumerator(Document); 806DependencyObject document = this.Document as DependencyObject; 824DependencyObject document = this.Document as DependencyObject; 889get { return (_findToolBarHost != null && Document != null && _textEditor != null); } 980if (Document != null) 983Document.StructuralCache.TextContainer.TextView = textView; 991Document != null && 993Document.StructuralCache.TextContainer.TextSelection == null) 995_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false); 1079Document.PagePadding = _printingState.PagePadding; 1080Document.ColumnWidth = _printingState.ColumnWidth; 1081((IDocumentPaginatorSource)Document).DocumentPaginator.PageSize = _printingState.PageSize; 1103if (args != null && args.TargetObject != null && Document != null) 1105document = Document; 1419args.CanExecute = (viewer.Document != null); 1853if (this.Document != null) 1902if (Document != null) 1904service = ((IServiceProvider)Document).GetService(serviceType); 1961FlowDocument document = Document;