3 writes to Document
PresentationFramework (3)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (1)
706
Document
= document;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1760
this.
Document
= document;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
522
Document
= null;
51 references to Document
PresentationFramework (51)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (3)
558
FlowDocument flowDocument =
Document
as FlowDocument;
717
if (value != null &&
Document
!= null)
736
if (value != null &&
Document
!= null)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
353
DynamicDocumentPaginator documentPaginator = _viewer.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1516
IDocumentPaginatorSource document = _viewer.
Document
;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (3)
215
isFlow = viewer.
Document
is FlowDocument;
600
isFlow = viewer.
Document
is FlowDocument;
1122
if (viewer.
Document
== null)
src\Framework\System\Windows\Annotations\AnnotationService.cs (6)
214
bool isFixed = viewer.
Document
is FixedDocument || viewer.
Document
is FixedDocumentSequence;
215
bool isFlow = !isFixed && viewer.
Document
is FlowDocument;
217
if (isFixed || isFlow || viewer.
Document
== null)
1129
document = documentViewerBase.
Document
;
1601
isFlow = ((DocumentViewerBase)viewer).
Document
is FlowDocument;
src\Framework\System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
115
IDocumentPaginatorSource document = ((DocumentViewerBase)Owner).
Document
;
src\Framework\System\Windows\Controls\DocumentViewer.cs (10)
898
if (!(
Document
is FixedDocument) && !(
Document
is FixedDocumentSequence)
899
&& !(
Document
== null))
913
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
1861
args.CanExecute = (dv.
Document
!= null);
2143
_documentScrollInfo.Content = (
Document
!= null) ?
Document
.DocumentPaginator as DynamicDocumentPaginator : null;
2178
if (_documentScrollInfo.Content !=
Document
)
2213
_findToolbar.DocumentLoaded = (
Document
!= null) ? true : false;
2326
if (_findToolbar == null ||
Document
== null)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
247
/// <see cref="
Document
"/>
1524
args.CanExecute = (dv.
Document
!= null) && (dv._documentWriter == null);
1750
if (this.
Document
!= null)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (23)
149
FlowDocument flowDocument =
Document
as FlowDocument;
472
DocumentViewerHelper.OnContextMenuOpening(
Document
as FlowDocument, this, e);
516
_oldDocument =
Document
;
519
if (
Document
!= null && !(
Document
is FlowDocument))
527
if(
Document
!= null)
529
DynamicDocumentPaginator dynamicDocumentPaginator =
Document
.DocumentPaginator as DynamicDocumentPaginator;
535
FlowDocumentPaginator flowDocumentPaginator =
Document
.DocumentPaginator as FlowDocumentPaginator;
660
FlowDocument document =
Document
as FlowDocument;
791
DependencyObject document = this.
Document
as DependencyObject;
809
DependencyObject document = this.
Document
as DependencyObject;
940
get { return (_findToolBarHost != null && this.
Document
!= null && this.TextEditor != null); }
970
if (this.
Document
!= null && _printingState == null)
972
documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1002
if (
Document
!= null && sender ==
Document
.DocumentPaginator && e != null)
1048
if (contentPosition != null &&
Document
!= null)
1050
DynamicDocumentPaginator documentPaginator = this.
Document
.DocumentPaginator as DynamicDocumentPaginator;
1051
if (documentPaginator != null && IsValidContentPositionForDocument(
Document
, contentPosition))
1120
((FlowDocument)
Document
).PagePadding = _printingState.PagePadding;
1121
Document
.DocumentPaginator.PageSize = _printingState.PageSize;
1185
newMasterPageNumber = ((DynamicDocumentPaginator)this.
Document
.DocumentPaginator).GetPageNumber(_contentPosition) + 1;
1567
FlowDocument document =
Document
as FlowDocument;