3 writes to Document
PresentationFramework (3)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
705
Document
= document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1745
this.
Document
= document;
System\Windows\Controls\SinglePageViewer.cs (1)
515
Document
= null;
55 references to Document
PresentationFramework (51)
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
557
FlowDocument flowDocument =
Document
as FlowDocument;
716
if (value != null &&
Document
!= null)
735
if (value != null &&
Document
!= null)
MS\Internal\Documents\MultiPageTextView.cs (2)
350
DynamicDocumentPaginator documentPaginator = _viewer.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1511
IDocumentPaginatorSource document = _viewer.
Document
;
System\Windows\Annotations\AnnotationHelper.cs (3)
209
isFlow = viewer.
Document
is FlowDocument;
593
isFlow = viewer.
Document
is FlowDocument;
1111
if (viewer.
Document
== null)
System\Windows\Annotations\AnnotationService.cs (6)
198
bool isFixed = viewer.
Document
is FixedDocument || viewer.
Document
is FixedDocumentSequence;
199
bool isFlow = !isFixed && viewer.
Document
is FlowDocument;
201
if (isFixed || isFlow || viewer.
Document
== null)
1091
document = documentViewerBase.
Document
;
1561
isFlow = ((DocumentViewerBase)viewer).
Document
is FlowDocument;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
113
IDocumentPaginatorSource document = ((DocumentViewerBase)Owner).
Document
;
System\Windows\Controls\DocumentViewer.cs (10)
879
if (!(
Document
is FixedDocument) && !(
Document
is FixedDocumentSequence)
880
&& !(
Document
== null))
894
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
1828
args.CanExecute = (dv.
Document
!= null);
2098
_documentScrollInfo.Content = (
Document
!= null) ?
Document
.DocumentPaginator as DynamicDocumentPaginator : null;
2133
if (_documentScrollInfo.Content !=
Document
)
2163
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
2261
if (_findToolbar == null ||
Document
== null)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
244
/// <see cref="
Document
"/>
1512
args.CanExecute = (dv.
Document
!= null) && (dv._documentWriter == null);
1735
if (this.
Document
!= null)
System\Windows\Controls\SinglePageViewer.cs (23)
147
FlowDocument flowDocument =
Document
as FlowDocument;
465
DocumentViewerHelper.OnContextMenuOpening(
Document
as FlowDocument, this, e);
509
_oldDocument =
Document
;
512
if (
Document
!= null && !(
Document
is FlowDocument))
520
if(
Document
!= null)
522
DynamicDocumentPaginator dynamicDocumentPaginator =
Document
.DocumentPaginator as DynamicDocumentPaginator;
528
FlowDocumentPaginator flowDocumentPaginator =
Document
.DocumentPaginator as FlowDocumentPaginator;
653
FlowDocument document =
Document
as FlowDocument;
784
DependencyObject document = this.
Document
as DependencyObject;
802
DependencyObject document = this.
Document
as DependencyObject;
933
get { return (_findToolBarHost != null && this.
Document
!= null && this.TextEditor != null); }
963
if (this.
Document
!= null && _printingState == null)
965
documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
995
if (
Document
!= null && sender ==
Document
.DocumentPaginator && e != null)
1041
if (contentPosition != null &&
Document
!= null)
1043
DynamicDocumentPaginator documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1044
if (documentPaginator != null && IsValidContentPositionForDocument(
Document
, contentPosition))
1113
((FlowDocument)
Document
).PagePadding = _printingState.PagePadding;
1114
Document
.DocumentPaginator.PageSize = _printingState.PageSize;
1178
newMasterPageNumber = ((DynamicDocumentPaginator)this.
Document
.DocumentPaginator).GetPageNumber(_contentPosition) + 1;
1560
FlowDocument document =
Document
as FlowDocument;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
376
if (
Document
!= null)
394
DocumentPaginator paginator =
Document
.DocumentPaginator;
548
DynamicDocumentPaginator paginator =
Document
.DocumentPaginator as DynamicDocumentPaginator;
556
OnPaginationCompleted(
Document
, EventArgs.Empty);