2 writes to Document
PresentationFramework (2)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (1)
353Document = document;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1872Document = value as FlowDocument;
40 references to Document
PresentationFramework (40)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (7)
222if (newTextSelection != null && Document != null && IsValidTextSelectionForDocument(newTextSelection, Document)) 224ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 367if (value != null && Document != null) 386if (value != null && Document != null) 415get { return (Document != null) ? 1 : 0; } 423get { return (Document != null) ? 1 : 0; }
src\Framework\System\Windows\Annotations\AnnotationService.cs (1)
1147document = docScrollViewer.Document;
src\Framework\System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
92FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
143RenderScope.Document = Document; 219FlowDocument flowDocument = Document; 355/// <see cref="Document"/> 549if (Document != null) 562paginator = ((IDocumentPaginatorSource)Document).DocumentPaginator as FlowDocumentPaginator; 566_printingState.PagePadding = Document.PagePadding; 568_printingState.ColumnWidth = Document.ColumnWidth; 591pagePadding = Document.ComputePageMargin(); 592Document.PagePadding = new Thickness( 597Document.ColumnWidth = double.PositiveInfinity; 753DocumentViewerHelper.OnContextMenuOpening(Document, this, e); 781if (HasLogicalChildren && Document != null) 783return new SingleChildEnumerator(Document); 812DependencyObject document = this.Document as DependencyObject; 830DependencyObject document = this.Document as DependencyObject; 895get { return (_findToolBarHost != null && Document != null && _textEditor != null); } 988if (Document != null) 991Document.StructuralCache.TextContainer.TextView = textView; 999Document != null && 1001Document.StructuralCache.TextContainer.TextSelection == null) 1003_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false); 1087Document.PagePadding = _printingState.PagePadding; 1088Document.ColumnWidth = _printingState.ColumnWidth; 1089((IDocumentPaginatorSource)Document).DocumentPaginator.PageSize = _printingState.PageSize; 1111if (args != null && args.TargetObject != null && Document != null) 1113document = Document; 1427args.CanExecute = (viewer.Document != null); 1864if (this.Document != null) 1916if (Document != null) 1918service = ((IServiceProvider)Document).GetService(serviceType); 1975FlowDocument document = Document;