3 writes to Document
PresentationFramework (3)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
702
Document
= document;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1728
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)
195
isFlow = viewer.
Document
is FlowDocument;
579
isFlow = viewer.
Document
is FlowDocument;
1097
if (viewer.
Document
== null)
System\Windows\Annotations\AnnotationService.cs (6)
185
bool isFixed = viewer.
Document
is FixedDocument || viewer.
Document
is FixedDocumentSequence;
186
bool isFlow = !isFixed && viewer.
Document
is FlowDocument;
188
if (isFixed || isFlow || viewer.
Document
== null)
1074
document = documentViewerBase.
Document
;
1544
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;
1822
args.CanExecute = (dv.
Document
!= null);
2094
_documentScrollInfo.Content = (
Document
!= null) ?
Document
.DocumentPaginator as DynamicDocumentPaginator : null;
2129
if (_documentScrollInfo.Content !=
Document
)
2159
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
2257
if (_findToolbar == null ||
Document
== null)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
228
/// <see cref="
Document
"/>
1497
args.CanExecute = (dv.
Document
!= null) && (dv._documentWriter == null);
1718
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;
783
DependencyObject document = this.
Document
as DependencyObject;
801
DependencyObject document = this.
Document
as DependencyObject;
932
get { return (_findToolBarHost != null && this.
Document
!= null && this.TextEditor != null); }
962
if (this.
Document
!= null && _printingState == null)
964
documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
994
if (
Document
!= null && sender ==
Document
.DocumentPaginator && e != null)
1040
if (contentPosition != null &&
Document
!= null)
1042
DynamicDocumentPaginator documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1043
if (documentPaginator != null && IsValidContentPositionForDocument(
Document
, contentPosition))
1112
((FlowDocument)
Document
).PagePadding = _printingState.PagePadding;
1113
Document
.DocumentPaginator.PageSize = _printingState.PageSize;
1177
newMasterPageNumber = ((DynamicDocumentPaginator)this.
Document
.DocumentPaginator).GetPageNumber(_contentPosition) + 1;
1559
FlowDocument document =
Document
as FlowDocument;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
365
if (
Document
!= null)
383
DocumentPaginator paginator =
Document
.DocumentPaginator;
537
DynamicDocumentPaginator paginator =
Document
.DocumentPaginator as DynamicDocumentPaginator;
545
OnPaginationCompleted(
Document
, EventArgs.Empty);