6 instantiations of FlowDocument
PresentationFramework (6)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
202((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run())); 242FlowDocument document = new FlowDocument(); 311FlowDocument document = new FlowDocument();
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
105document = new FlowDocument();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4309bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.FlowDocument(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1271case KnownElements.FlowDocument: o = new System.Windows.Documents.FlowDocument(); break;
139 references to FlowDocument
PresentationFramework (139)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
284FlowDocument content = currentStart.TextContainer.Parent as FlowDocument;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
242FlowDocument document = new FlowDocument(); 311FlowDocument document = new FlowDocument();
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (3)
59else if (parent is FlowDocument) // Viewers 61ich = GetICHFromFlowDocument((TextElement)contentElement, (FlowDocument)parent); 90private static IContentHost GetICHFromFlowDocument(TextElement contentElement, FlowDocument flowDocument)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
385internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (2)
40internal FlowDocumentFormatter(FlowDocument document) 265private readonly FlowDocument _document;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (2)
47internal FlowDocumentPaginator(FlowDocument document) 905private readonly FlowDocument _document;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
310internal FlowDocument Document 415private FlowDocument _document; // Hosted FlowDocument
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (6)
76void SetDocument(FlowDocument document); 206private bool IsValidTextSelectionForDocument(ITextSelection textSelection, FlowDocument flowDocument) 351void IFlowDocumentViewer.SetDocument(FlowDocument document) 558FlowDocument flowDocument = Document as FlowDocument; 704void IFlowDocumentViewer.SetDocument(FlowDocument document)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
555Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 577Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 674Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
3334FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3352FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3378FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3396FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3414FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\ColumnPropertiesGroup.cs (5)
36_columnWidth = (double)o.GetValue(FlowDocument.ColumnWidthProperty); 37_columnGap = (double)o.GetValue(FlowDocument.ColumnGapProperty); 38_columnRuleWidth = (double)o.GetValue(FlowDocument.ColumnRuleWidthProperty); 39_columnRuleBrush = (Brush)o.GetValue(FlowDocument.ColumnRuleBrushProperty); 40_isColumnWidthFlexible = (bool)o.GetValue(FlowDocument.IsColumnWidthFlexibleProperty);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (3)
666this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 885this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize)); 899FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (1)
869if(o is FlowDocument)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
271FlowDocument formattingOwner = _section.StructuralCache.FormattingOwner;
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (4)
46internal StructuralCache(FlowDocument owner, TextContainer textContainer) 254internal FlowDocument FormattingOwner 411return (bool)this.PropertyOwner.GetValue(FlowDocument.IsOptimalParagraphEnabledProperty); 527private readonly FlowDocument _owner;
src\Framework\MS\Internal\Text\LineProperties.cs (2)
149else if (contentHost is FlowDocument) 151_textWrapping = ((FlowDocument)contentHost).TextWrapping;
src\Framework\MS\Internal\Text\TextProperties.cs (2)
298FlowDocument fd = element as FlowDocument;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (2)
215isFlow = viewer.Document is FlowDocument; 600isFlow = viewer.Document is FlowDocument;
src\Framework\System\Windows\Annotations\AnnotationService.cs (2)
215bool isFlow = !isFixed && viewer.Document is FlowDocument; 1601isFlow = ((DocumentViewerBase)viewer).Document is FlowDocument;
src\Framework\System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
63FlowDocument document = ((FlowDocumentReader)Owner).Document;
src\Framework\System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
92FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (11)
307public FlowDocument Document 309get { return (FlowDocument)GetValue(DocumentProperty); } 542typeof(FlowDocument), 1018private void DocumentChanged(FlowDocument oldDocument, FlowDocument newDocument) 1746viewer.DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1966if (!(value is FlowDocument)) 1968throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 1970Document = value as FlowDocument; 2042FlowDocument document = Document;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
205public FlowDocument Document 207get { return (FlowDocument)GetValue(DocumentProperty); } 219FlowDocument flowDocument = Document; 360typeof(FlowDocument), 1202private void DocumentChanged(FlowDocument oldDocument, FlowDocument newDocument) 1634((FlowDocumentScrollViewer)d).DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1868if (!(value is FlowDocument)) 1870throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 1872Document = value as FlowDocument; 1975FlowDocument document = Document;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
400FlowDocument flowDocument = _document as FlowDocument; 1389FlowDocument flowDocument; 1407else if ((flowDocument = _document as FlowDocument) != null)
src\Framework\System\Windows\Controls\RichTextBox.cs (8)
92public RichTextBox(FlowDocument document) 161if (!(value is FlowDocument)) 163throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 171this.Document = (FlowDocument)value; 355public FlowDocument Document 652DependencyProperty[] inheritableFormattingProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument)); 679DependencyProperty[] inheritableFormattingProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument)); 835private FlowDocument _document;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (11)
149FlowDocument flowDocument = Document as FlowDocument; 472DocumentViewerHelper.OnContextMenuOpening(Document as FlowDocument, this, e); 519if (Document != null && !(Document is FlowDocument)) 660FlowDocument document = Document as FlowDocument; 1031FlowDocument flowDocument = document as FlowDocument; 1120((FlowDocument)Document).PagePadding = _printingState.PagePadding; 1567FlowDocument document = Document as FlowDocument;
src\Framework\System\Windows\Controls\TextBlock.cs (2)
3720FlowDocument fd = parent as FlowDocument;
src\Framework\System\Windows\Documents\FlowDocument.cs (12)
71static private readonly Type _typeofThis = typeof(FlowDocument); 1206((FlowDocument)d)._typographyPropertiesGroup = null; 1249FlowDocument fd = (FlowDocument)d; 1310FlowDocument fd = (FlowDocument) d; 1325FlowDocument fd = (FlowDocument) d; 1340FlowDocument fd = (FlowDocument) d; 1366FlowDocument fd = (FlowDocument) d;
src\Framework\System\Windows\Documents\Run.cs (2)
276FlowDocument document = run.TextContainer.Parent as FlowDocument;
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
2053FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
1251((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1267((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true);
src\Framework\System\Windows\Documents\TextElementCollection.cs (3)
44Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is TextBlock); 730else if (_owner is FlowDocument) 732textContainer = ((FlowDocument)_owner).TextContainer;
src\Framework\System\Windows\Documents\TextPointer.cs (4)
26/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 421/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 1701/// <see cref="FlowDocument"/>.</para> 1718/// <see cref="FlowDocument"/>.</para>
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
245typeof(FlowDocument).IsAssignableFrom(parentType); 893if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
666rootType = typeof(FlowDocument); 737DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument));
src\Framework\System\Windows\Documents\TextSchema.cs (2)
464if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type)) 872typeof(FlowDocument).IsAssignableFrom(parentType))
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
301case 209: t = () => typeof(FlowDocument); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (5)
4583Type type = typeof(System.Windows.Documents.FlowDocument); 4585this.GetXamlType(typeof(System.Windows.Documents.FlowDocument)), // DeclaringType 4591bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FlowDocument)target).Blocks; }; 5478typeof(System.Windows.Documents.FlowDocument), // type 5482bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.RichTextBox)target).Document = (System.Windows.Documents.FlowDocument)value; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4307typeof(System.Windows.Documents.FlowDocument),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
2490case KnownElements.FlowDocument: return (o as System.Windows.Documents.FlowDocument).Blocks; 5753case KnownElements.FlowDocument: t = typeof(System.Windows.Documents.FlowDocument); break;