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