2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
337Document = document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1822Document = value as FlowDocument;
40 references to Document
PresentationFramework (40)
MS\Internal\Documents\IFlowDocumentViewer.cs (7)
218if (newTextSelection != null && Document != null && IsValidTextSelectionForDocument(newTextSelection, Document)) 220ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 351if (value != null && Document != null) 370if (value != null && Document != null) 399get { return (Document != null) ? 1 : 0; } 407get { return (Document != null) ? 1 : 0; }
System\Windows\Annotations\AnnotationService.cs (1)
1092document = docScrollViewer.Document;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
90FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
139RenderScope.Document = Document; 215FlowDocument flowDocument = Document; 351/// <see cref="Document"/> 545if (Document != null) 555paginator = ((IDocumentPaginatorSource)Document).DocumentPaginator as FlowDocumentPaginator; 560PagePadding = Document.PagePadding, 562ColumnWidth = Document.ColumnWidth 586pagePadding = Document.ComputePageMargin(); 587Document.PagePadding = new Thickness( 592Document.ColumnWidth = double.PositiveInfinity; 740DocumentViewerHelper.OnContextMenuOpening(Document, this, e); 768if (HasLogicalChildren && Document != null) 770return new SingleChildEnumerator(Document); 799DependencyObject document = this.Document as DependencyObject; 817DependencyObject document = this.Document as DependencyObject; 882get { return (_findToolBarHost != null && Document != null && _textEditor != null); } 973if (Document != null) 976Document.StructuralCache.TextContainer.TextView = textView; 984Document != null && 986Document.StructuralCache.TextContainer.TextSelection == null) 988_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false) 1071Document.PagePadding = _printingState.PagePadding; 1072Document.ColumnWidth = _printingState.ColumnWidth; 1073((IDocumentPaginatorSource)Document).DocumentPaginator.PageSize = _printingState.PageSize; 1095if (args != null && args.TargetObject != null && Document != null) 1097document = Document; 1407args.CanExecute = (viewer.Document != null); 1814if (this.Document != null) 1863if (Document != null) 1865service = ((IServiceProvider)Document).GetService(serviceType); 1922FlowDocument document = Document;