3 writes to Document
PresentationFramework (3)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
702
Document
= document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1740
this.
Document
= document;
System\Windows\Controls\SinglePageViewer.cs (1)
512
Document
= null;
55 references to Document
PresentationFramework (51)
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
554
FlowDocument flowDocument =
Document
as FlowDocument;
713
if (value != null &&
Document
!= null)
732
if (value != null &&
Document
!= null)
MS\Internal\Documents\MultiPageTextView.cs (2)
348
DynamicDocumentPaginator documentPaginator = _viewer.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1509
IDocumentPaginatorSource document = _viewer.
Document
;
System\Windows\Annotations\AnnotationHelper.cs (3)
197
isFlow = viewer.
Document
is FlowDocument;
581
isFlow = viewer.
Document
is FlowDocument;
1099
if (viewer.
Document
== null)
System\Windows\Annotations\AnnotationService.cs (6)
186
bool isFixed = viewer.
Document
is FixedDocument || viewer.
Document
is FixedDocumentSequence;
187
bool isFlow = !isFixed && viewer.
Document
is FlowDocument;
189
if (isFixed || isFlow || viewer.
Document
== null)
1079
document = documentViewerBase.
Document
;
1549
isFlow = ((DocumentViewerBase)viewer).
Document
is FlowDocument;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
112
IDocumentPaginatorSource document = ((DocumentViewerBase)Owner).
Document
;
System\Windows\Controls\DocumentViewer.cs (10)
867
if (!(
Document
is FixedDocument) && !(
Document
is FixedDocumentSequence)
868
&& !(
Document
== null))
882
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
1816
args.CanExecute = (dv.
Document
!= null);
2086
_documentScrollInfo.Content = (
Document
!= null) ?
Document
.DocumentPaginator as DynamicDocumentPaginator : null;
2121
if (_documentScrollInfo.Content !=
Document
)
2151
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
2249
if (_findToolbar == null ||
Document
== null)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
239
/// <see cref="
Document
"/>
1507
args.CanExecute = (dv.
Document
!= null) && (dv._documentWriter == null);
1730
if (this.
Document
!= null)
System\Windows\Controls\SinglePageViewer.cs (23)
144
FlowDocument flowDocument =
Document
as FlowDocument;
462
DocumentViewerHelper.OnContextMenuOpening(
Document
as FlowDocument, this, e);
506
_oldDocument =
Document
;
509
if (
Document
!= null && !(
Document
is FlowDocument))
517
if(
Document
!= null)
519
DynamicDocumentPaginator dynamicDocumentPaginator =
Document
.DocumentPaginator as DynamicDocumentPaginator;
525
FlowDocumentPaginator flowDocumentPaginator =
Document
.DocumentPaginator as FlowDocumentPaginator;
650
FlowDocument document =
Document
as FlowDocument;
781
DependencyObject document = this.
Document
as DependencyObject;
799
DependencyObject document = this.
Document
as DependencyObject;
930
get { return (_findToolBarHost != null && this.
Document
!= null && this.TextEditor != null); }
960
if (this.
Document
!= null && _printingState == null)
962
documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
992
if (
Document
!= null && sender ==
Document
.DocumentPaginator && e != null)
1038
if (contentPosition != null &&
Document
!= null)
1040
DynamicDocumentPaginator documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1041
if (documentPaginator != null && IsValidContentPositionForDocument(
Document
, contentPosition))
1110
((FlowDocument)
Document
).PagePadding = _printingState.PagePadding;
1111
Document
.DocumentPaginator.PageSize = _printingState.PageSize;
1175
newMasterPageNumber = ((DynamicDocumentPaginator)this.
Document
.DocumentPaginator).GetPageNumber(_contentPosition) + 1;
1557
FlowDocument document =
Document
as FlowDocument;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
369
if (
Document
!= null)
387
DocumentPaginator paginator =
Document
.DocumentPaginator;
541
DynamicDocumentPaginator paginator =
Document
.DocumentPaginator as DynamicDocumentPaginator;
549
OnPaginationCompleted(
Document
, EventArgs.Empty);