2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
337
Document
= document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1822
Document
= value as FlowDocument;
40 references to Document
PresentationFramework (40)
MS\Internal\Documents\IFlowDocumentViewer.cs (7)
218
if (newTextSelection != null &&
Document
!= null && IsValidTextSelectionForDocument(newTextSelection,
Document
))
220
ITextSelection textSelection =
Document
.StructuralCache.TextContainer.TextSelection;
351
if (value != null &&
Document
!= null)
370
if (value != null &&
Document
!= null)
399
get { return (
Document
!= null) ? 1 : 0; }
407
get { return (
Document
!= null) ? 1 : 0; }
System\Windows\Annotations\AnnotationService.cs (1)
1092
document = docScrollViewer.
Document
;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
90
FlowDocument document = ((FlowDocumentScrollViewer)Owner).
Document
;
System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
139
RenderScope.Document =
Document
;
215
FlowDocument flowDocument =
Document
;
351
/// <see cref="
Document
"/>
545
if (
Document
!= null)
555
paginator = ((IDocumentPaginatorSource)
Document
).DocumentPaginator as FlowDocumentPaginator;
560
PagePadding =
Document
.PagePadding,
562
ColumnWidth =
Document
.ColumnWidth
586
pagePadding =
Document
.ComputePageMargin();
587
Document
.PagePadding = new Thickness(
592
Document
.ColumnWidth = double.PositiveInfinity;
740
DocumentViewerHelper.OnContextMenuOpening(
Document
, this, e);
768
if (HasLogicalChildren &&
Document
!= null)
770
return new SingleChildEnumerator(
Document
);
799
DependencyObject document = this.
Document
as DependencyObject;
817
DependencyObject document = this.
Document
as DependencyObject;
882
get { return (_findToolBarHost != null &&
Document
!= null && _textEditor != null); }
973
if (
Document
!= null)
976
Document
.StructuralCache.TextContainer.TextView = textView;
984
Document
!= null &&
986
Document
.StructuralCache.TextContainer.TextSelection == null)
988
_textEditor = new TextEditor(
Document
.StructuralCache.TextContainer, this, false)
1071
Document
.PagePadding = _printingState.PagePadding;
1072
Document
.ColumnWidth = _printingState.ColumnWidth;
1073
((IDocumentPaginatorSource)
Document
).DocumentPaginator.PageSize = _printingState.PageSize;
1095
if (args != null && args.TargetObject != null &&
Document
!= null)
1097
document =
Document
;
1407
args.CanExecute = (viewer.
Document
!= null);
1814
if (this.
Document
!= null)
1863
if (
Document
!= null)
1865
service = ((IServiceProvider)
Document
).GetService(serviceType);
1922
FlowDocument document =
Document
;