2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
336
Document
= document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1806
Document
= value as FlowDocument;
40 references to Document
PresentationFramework (40)
MS\Internal\Documents\IFlowDocumentViewer.cs (7)
217
if (newTextSelection != null &&
Document
!= null && IsValidTextSelectionForDocument(newTextSelection,
Document
))
219
ITextSelection textSelection =
Document
.StructuralCache.TextContainer.TextSelection;
350
if (value != null &&
Document
!= null)
369
if (value != null &&
Document
!= null)
398
get { return (
Document
!= null) ? 1 : 0; }
406
get { return (
Document
!= null) ? 1 : 0; }
System\Windows\Annotations\AnnotationService.cs (1)
1091
document = docScrollViewer.
Document
;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
89
FlowDocument document = ((FlowDocumentScrollViewer)Owner).
Document
;
System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
135
RenderScope.Document =
Document
;
211
FlowDocument flowDocument =
Document
;
347
/// <see cref="
Document
"/>
541
if (
Document
!= null)
551
paginator = ((IDocumentPaginatorSource)
Document
).DocumentPaginator as FlowDocumentPaginator;
556
PagePadding =
Document
.PagePadding,
558
ColumnWidth =
Document
.ColumnWidth
582
pagePadding =
Document
.ComputePageMargin();
583
Document
.PagePadding = new Thickness(
588
Document
.ColumnWidth = double.PositiveInfinity;
736
DocumentViewerHelper.OnContextMenuOpening(
Document
, this, e);
764
if (HasLogicalChildren &&
Document
!= null)
766
return new SingleChildEnumerator(
Document
);
795
DependencyObject document = this.
Document
as DependencyObject;
813
DependencyObject document = this.
Document
as DependencyObject;
878
get { return (_findToolBarHost != null &&
Document
!= null && _textEditor != null); }
966
if (
Document
!= null)
969
Document
.StructuralCache.TextContainer.TextView = textView;
977
Document
!= null &&
979
Document
.StructuralCache.TextContainer.TextSelection == null)
981
_textEditor = new TextEditor(
Document
.StructuralCache.TextContainer, this, false)
1064
Document
.PagePadding = _printingState.PagePadding;
1065
Document
.ColumnWidth = _printingState.ColumnWidth;
1066
((IDocumentPaginatorSource)
Document
).DocumentPaginator.PageSize = _printingState.PageSize;
1088
if (args != null && args.TargetObject != null &&
Document
!= null)
1090
document =
Document
;
1394
args.CanExecute = (viewer.
Document
!= null);
1798
if (this.
Document
!= null)
1847
if (
Document
!= null)
1849
service = ((IServiceProvider)
Document
).GetService(serviceType);
1906
FlowDocument document =
Document
;