2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
336
Document
= document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1821
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)
138
RenderScope.Document =
Document
;
214
FlowDocument flowDocument =
Document
;
350
/// <see cref="
Document
"/>
544
if (
Document
!= null)
554
paginator = ((IDocumentPaginatorSource)
Document
).DocumentPaginator as FlowDocumentPaginator;
559
PagePadding =
Document
.PagePadding,
561
ColumnWidth =
Document
.ColumnWidth
585
pagePadding =
Document
.ComputePageMargin();
586
Document
.PagePadding = new Thickness(
591
Document
.ColumnWidth = double.PositiveInfinity;
739
DocumentViewerHelper.OnContextMenuOpening(
Document
, this, e);
767
if (HasLogicalChildren &&
Document
!= null)
769
return new SingleChildEnumerator(
Document
);
798
DependencyObject document = this.
Document
as DependencyObject;
816
DependencyObject document = this.
Document
as DependencyObject;
881
get { return (_findToolBarHost != null &&
Document
!= null && _textEditor != null); }
972
if (
Document
!= null)
975
Document
.StructuralCache.TextContainer.TextView = textView;
983
Document
!= null &&
985
Document
.StructuralCache.TextContainer.TextSelection == null)
987
_textEditor = new TextEditor(
Document
.StructuralCache.TextContainer, this, false)
1070
Document
.PagePadding = _printingState.PagePadding;
1071
Document
.ColumnWidth = _printingState.ColumnWidth;
1072
((IDocumentPaginatorSource)
Document
).DocumentPaginator.PageSize = _printingState.PageSize;
1094
if (args != null && args.TargetObject != null &&
Document
!= null)
1096
document =
Document
;
1406
args.CanExecute = (viewer.
Document
!= null);
1813
if (this.
Document
!= null)
1862
if (
Document
!= null)
1864
service = ((IServiceProvider)
Document
).GetService(serviceType);
1921
FlowDocument document =
Document
;