6 instantiations of FlowDocument
PresentationFramework (6)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
196((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run())); 236FlowDocument document = new FlowDocument(); 305FlowDocument document = new FlowDocument();
System\Windows\Controls\RichTextBox.cs (1)
103document = new FlowDocument();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4313bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.FlowDocument(); };
System\Windows\Markup\KnownTypes.cs (1)
1270case KnownElements.FlowDocument: o = new System.Windows.Documents.FlowDocument(); break;
139 references to FlowDocument
PresentationFramework (139)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
271FlowDocument content = currentStart.TextContainer.Parent as FlowDocument;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
236FlowDocument document = new FlowDocument(); 305FlowDocument document = new FlowDocument();
MS\Internal\Documents\ContentHostHelper.cs (3)
57else if (parent is FlowDocument) // Viewers 59ich = GetICHFromFlowDocument((TextElement)contentElement, (FlowDocument)parent); 88private static IContentHost GetICHFromFlowDocument(TextElement contentElement, FlowDocument flowDocument)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
365internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
MS\Internal\Documents\FlowDocumentFormatter.cs (2)
35internal FlowDocumentFormatter(FlowDocument document) 260private readonly FlowDocument _document;
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
42internal FlowDocumentPaginator(FlowDocument document) 888private readonly FlowDocument _document;
MS\Internal\Documents\FlowDocumentView.cs (2)
305internal FlowDocument Document 410private FlowDocument _document; // Hosted FlowDocument
MS\Internal\Documents\IFlowDocumentViewer.cs (6)
75void SetDocument(FlowDocument document); 205private bool IsValidTextSelectionForDocument(ITextSelection textSelection, FlowDocument flowDocument) 350void IFlowDocumentViewer.SetDocument(FlowDocument document) 557FlowDocument flowDocument = Document as FlowDocument; 703void IFlowDocumentViewer.SetDocument(FlowDocument document)
MS\Internal\Documents\TextContainerHelper.cs (3)
550Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 572Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 669Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
MS\Internal\Documents\TextDocumentView.cs (5)
3325FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3343FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3369FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3387FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3405FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
MS\Internal\PtsHost\ColumnPropertiesGroup.cs (5)
32_columnWidth = (double)o.GetValue(FlowDocument.ColumnWidthProperty); 33_columnGap = (double)o.GetValue(FlowDocument.ColumnGapProperty); 34_columnRuleWidth = (double)o.GetValue(FlowDocument.ColumnRuleWidthProperty); 35_columnRuleBrush = (Brush)o.GetValue(FlowDocument.ColumnRuleBrushProperty); 36_isColumnWidthFlexible = (bool)o.GetValue(FlowDocument.IsColumnWidthFlexibleProperty);
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
645this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 863this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize)); 877FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
MS\Internal\PtsHost\PtsHelper.cs (1)
768if(o is FlowDocument)
MS\Internal\PtsHost\PtsPage.cs (1)
262FlowDocument formattingOwner = _section.StructuralCache.FormattingOwner;
MS\Internal\PtsHost\StructuralCache.cs (4)
42internal StructuralCache(FlowDocument owner, TextContainer textContainer) 250internal FlowDocument FormattingOwner 407return (bool)this.PropertyOwner.GetValue(FlowDocument.IsOptimalParagraphEnabledProperty); 523private readonly FlowDocument _owner;
MS\Internal\Text\LineProperties.cs (2)
146else if (contentHost is FlowDocument) 148_textWrapping = ((FlowDocument)contentHost).TextWrapping;
MS\Internal\Text\TextProperties.cs (2)
291FlowDocument fd = element as FlowDocument;
System\Windows\Annotations\AnnotationHelper.cs (2)
209isFlow = viewer.Document is FlowDocument; 593isFlow = viewer.Document is FlowDocument;
System\Windows\Annotations\AnnotationService.cs (2)
199bool isFlow = !isFixed && viewer.Document is FlowDocument; 1561isFlow = ((DocumentViewerBase)viewer).Document is FlowDocument;
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
61FlowDocument document = ((FlowDocumentReader)Owner).Document;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
91FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
System\Windows\Controls\FlowDocumentReader.cs (11)
306public FlowDocument Document 308get { return (FlowDocument)GetValue(DocumentProperty); } 541typeof(FlowDocument), 1012private void DocumentChanged(FlowDocument oldDocument, FlowDocument newDocument) 1740viewer.DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1960if (!(value is FlowDocument)) 1962throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 1964Document = value as FlowDocument; 2036FlowDocument document = Document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
204public FlowDocument Document 206get { return (FlowDocument)GetValue(DocumentProperty); } 218FlowDocument flowDocument = Document; 359typeof(FlowDocument), 1194private void DocumentChanged(FlowDocument oldDocument, FlowDocument newDocument) 1626((FlowDocumentScrollViewer)d).DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1857if (!(value is FlowDocument)) 1859throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 1861Document = value as FlowDocument; 1961FlowDocument document = Document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
391FlowDocument flowDocument = _document as FlowDocument; 1377FlowDocument flowDocument; 1395else if ((flowDocument = _document as FlowDocument) != null)
System\Windows\Controls\RichTextBox.cs (8)
90public RichTextBox(FlowDocument document) 156if (!(value is FlowDocument)) 158throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 166this.Document = (FlowDocument)value; 347public FlowDocument Document 638DependencyProperty[] inheritableFormattingProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument)); 665DependencyProperty[] inheritableFormattingProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument)); 821private FlowDocument _document;
System\Windows\Controls\SinglePageViewer.cs (11)
147FlowDocument flowDocument = Document as FlowDocument; 465DocumentViewerHelper.OnContextMenuOpening(Document as FlowDocument, this, e); 512if (Document != null && !(Document is FlowDocument)) 653FlowDocument document = Document as FlowDocument; 1024FlowDocument flowDocument = document as FlowDocument; 1113((FlowDocument)Document).PagePadding = _printingState.PagePadding; 1560FlowDocument document = Document as FlowDocument;
System\Windows\Controls\TextBlock.cs (2)
3731FlowDocument fd = parent as FlowDocument;
System\Windows\Documents\FlowDocument.cs (12)
66static private readonly Type _typeofThis = typeof(FlowDocument); 1198((FlowDocument)d)._typographyPropertiesGroup = null; 1241FlowDocument fd = (FlowDocument)d; 1302FlowDocument fd = (FlowDocument) d; 1317FlowDocument fd = (FlowDocument) d; 1332FlowDocument fd = (FlowDocument) d; 1358FlowDocument fd = (FlowDocument) d;
System\Windows\Documents\Run.cs (2)
276FlowDocument document = run.TextContainer.Parent as FlowDocument;
System\windows\Documents\TextEditorSelection.cs (1)
2044FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty);
System\windows\Documents\TextEditorTyping.cs (2)
1234((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1250((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true);
System\Windows\Documents\TextElementCollection.cs (3)
44Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is TextBlock); 697else if (_owner is FlowDocument) 699textContainer = ((FlowDocument)_owner).TextContainer;
System\Windows\Documents\TextPointer.cs (4)
24/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 413/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 1687/// <see cref="FlowDocument"/>.</para> 1704/// <see cref="FlowDocument"/>.</para>
System\Windows\Documents\TextPointerBase.cs (2)
243typeof(FlowDocument).IsAssignableFrom(parentType); 888if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView)
System\Windows\Documents\TextRangeSerialization.cs (2)
659rootType = typeof(FlowDocument); 731DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument));
System\Windows\Documents\TextSchema.cs (2)
462if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type)) 870typeof(FlowDocument).IsAssignableFrom(parentType))
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
305case 209: t = () => typeof(FlowDocument); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (5)
4608Type type = typeof(System.Windows.Documents.FlowDocument); 4610this.GetXamlType(typeof(System.Windows.Documents.FlowDocument)), // DeclaringType 4616bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FlowDocument)target).Blocks; }; 5503typeof(System.Windows.Documents.FlowDocument), // type 5507bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.RichTextBox)target).Document = (System.Windows.Documents.FlowDocument)value; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4311typeof(System.Windows.Documents.FlowDocument),
System\Windows\Markup\KnownTypes.cs (2)
2497case KnownElements.FlowDocument: return (o as System.Windows.Documents.FlowDocument).Blocks; 5763case KnownElements.FlowDocument: t = typeof(System.Windows.Documents.FlowDocument); break;