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