6 instantiations of FlowDocument
PresentationFramework (6)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
191((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run())); 231FlowDocument document = new FlowDocument(); 300FlowDocument document = new FlowDocument();
System\Windows\Controls\RichTextBox.cs (1)
99document = new FlowDocument();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4311bamlType.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)
261FlowDocument content = currentStart.TextContainer.Parent as FlowDocument;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
231FlowDocument document = new FlowDocument(); 300FlowDocument document = new FlowDocument();
MS\Internal\Documents\ContentHostHelper.cs (3)
54else if (parent is FlowDocument) // Viewers 56ich = GetICHFromFlowDocument((TextElement)contentElement, (FlowDocument)parent); 85private static IContentHost GetICHFromFlowDocument(TextElement contentElement, FlowDocument flowDocument)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
363internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
MS\Internal\Documents\FlowDocumentFormatter.cs (2)
32internal FlowDocumentFormatter(FlowDocument document) 257private readonly FlowDocument _document;
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
38internal FlowDocumentPaginator(FlowDocument document) 884private readonly FlowDocument _document;
MS\Internal\Documents\FlowDocumentView.cs (2)
303internal FlowDocument Document 408private FlowDocument _document; // Hosted FlowDocument
MS\Internal\Documents\IFlowDocumentViewer.cs (6)
72void SetDocument(FlowDocument document); 202private bool IsValidTextSelectionForDocument(ITextSelection textSelection, FlowDocument flowDocument) 347void IFlowDocumentViewer.SetDocument(FlowDocument document) 554FlowDocument flowDocument = Document as FlowDocument; 700void IFlowDocumentViewer.SetDocument(FlowDocument document)
MS\Internal\Documents\TextContainerHelper.cs (3)
547Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 569Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox, 666Invariant.Assert(element is TextBlock || element is FlowDocument || element is TextBox,
MS\Internal\Documents\TextDocumentView.cs (5)
3323FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3341FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3367FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3385FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3403FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
MS\Internal\PtsHost\ColumnPropertiesGroup.cs (5)
29_columnWidth = (double)o.GetValue(FlowDocument.ColumnWidthProperty); 30_columnGap = (double)o.GetValue(FlowDocument.ColumnGapProperty); 31_columnRuleWidth = (double)o.GetValue(FlowDocument.ColumnRuleWidthProperty); 32_columnRuleBrush = (Brush)o.GetValue(FlowDocument.ColumnRuleBrushProperty); 33_isColumnWidthFlexible = (bool)o.GetValue(FlowDocument.IsColumnWidthFlexibleProperty);
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
637this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), contentViewport); 855this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize)); 869FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty);
MS\Internal\PtsHost\PtsHelper.cs (1)
763if(o is FlowDocument)
MS\Internal\PtsHost\PtsPage.cs (1)
256FlowDocument formattingOwner = _section.StructuralCache.FormattingOwner;
MS\Internal\PtsHost\StructuralCache.cs (4)
36internal StructuralCache(FlowDocument owner, TextContainer textContainer) 244internal FlowDocument FormattingOwner 401return (bool)this.PropertyOwner.GetValue(FlowDocument.IsOptimalParagraphEnabledProperty); 517private readonly FlowDocument _owner;
MS\Internal\Text\LineProperties.cs (2)
142else if (contentHost is FlowDocument) 144_textWrapping = ((FlowDocument)contentHost).TextWrapping;
MS\Internal\Text\TextProperties.cs (2)
289FlowDocument fd = element as FlowDocument;
System\Windows\Annotations\AnnotationHelper.cs (2)
197isFlow = viewer.Document is FlowDocument; 581isFlow = viewer.Document is FlowDocument;
System\Windows\Annotations\AnnotationService.cs (2)
187bool isFlow = !isFixed && viewer.Document is FlowDocument; 1549isFlow = ((DocumentViewerBase)viewer).Document is FlowDocument;
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
60FlowDocument document = ((FlowDocumentReader)Owner).Document;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
90FlowDocument document = ((FlowDocumentScrollViewer)Owner).Document;
System\Windows\Controls\FlowDocumentReader.cs (11)
301public FlowDocument Document 303get { return (FlowDocument)GetValue(DocumentProperty); } 536typeof(FlowDocument), 1007private void DocumentChanged(FlowDocument oldDocument, FlowDocument newDocument) 1735viewer.DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1955if (!(value is FlowDocument)) 1957throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 1959Document = value as FlowDocument; 2031FlowDocument document = Document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
201public FlowDocument Document 203get { return (FlowDocument)GetValue(DocumentProperty); } 215FlowDocument flowDocument = Document; 356typeof(FlowDocument), 1191private void DocumentChanged(FlowDocument oldDocument, FlowDocument newDocument) 1623((FlowDocumentScrollViewer)d).DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1854if (!(value is FlowDocument)) 1856throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 1858Document = value as FlowDocument; 1958FlowDocument document = Document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
386FlowDocument flowDocument = _document as FlowDocument; 1372FlowDocument flowDocument; 1390else if ((flowDocument = _document as FlowDocument) != null)
System\Windows\Controls\RichTextBox.cs (8)
86public RichTextBox(FlowDocument document) 152if (!(value is FlowDocument)) 154throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 162this.Document = (FlowDocument)value; 343public FlowDocument Document 634DependencyProperty[] inheritableFormattingProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument)); 661DependencyProperty[] inheritableFormattingProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument)); 817private FlowDocument _document;
System\Windows\Controls\SinglePageViewer.cs (11)
144FlowDocument flowDocument = Document as FlowDocument; 462DocumentViewerHelper.OnContextMenuOpening(Document as FlowDocument, this, e); 509if (Document != null && !(Document is FlowDocument)) 650FlowDocument document = Document as FlowDocument; 1021FlowDocument flowDocument = document as FlowDocument; 1110((FlowDocument)Document).PagePadding = _printingState.PagePadding; 1557FlowDocument document = Document as FlowDocument;
System\Windows\Controls\TextBlock.cs (2)
3721FlowDocument 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)
2029FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty);
System\windows\Documents\TextEditorTyping.cs (2)
1225((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1241((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true);
System\Windows\Documents\TextElementCollection.cs (3)
42Invariant.Assert(owner is TextElement || owner is FlowDocument || owner is TextBlock); 695else if (_owner is FlowDocument) 697textContainer = ((FlowDocument)_owner).TextContainer;
System\Windows\Documents\TextPointer.cs (4)
19/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 408/// <see cref="TextBlock"/> or <see cref="FlowDocument"/>. 1682/// <see cref="FlowDocument"/>.</para> 1699/// <see cref="FlowDocument"/>.</para>
System\Windows\Documents\TextPointerBase.cs (2)
241typeof(FlowDocument).IsAssignableFrom(parentType); 886if (thisPointer.TextContainer.Parent is FlowDocument && textView.RenderScope is FlowDocumentView)
System\Windows\Documents\TextRangeSerialization.cs (2)
653rootType = typeof(FlowDocument); 725DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(FlowDocument));
System\Windows\Documents\TextSchema.cs (2)
461if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type)) 869typeof(FlowDocument).IsAssignableFrom(parentType))
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
303case 209: t = () => typeof(FlowDocument); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (5)
4606Type type = typeof(System.Windows.Documents.FlowDocument); 4608this.GetXamlType(typeof(System.Windows.Documents.FlowDocument)), // DeclaringType 4614bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FlowDocument)target).Blocks; }; 5501typeof(System.Windows.Documents.FlowDocument), // type 5505bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.RichTextBox)target).Document = (System.Windows.Documents.FlowDocument)value; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4309typeof(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;