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