2 writes to Document
PresentationFramework (2)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (1)
353
Document
= document;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1872
Document
= value as FlowDocument;
40 references to Document
PresentationFramework (40)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (7)
222
if (newTextSelection != null &&
Document
!= null && IsValidTextSelectionForDocument(newTextSelection,
Document
))
224
ITextSelection textSelection =
Document
.StructuralCache.TextContainer.TextSelection;
367
if (value != null &&
Document
!= null)
386
if (value != null &&
Document
!= null)
415
get { return (
Document
!= null) ? 1 : 0; }
423
get { return (
Document
!= null) ? 1 : 0; }
src\Framework\System\Windows\Annotations\AnnotationService.cs (1)
1147
document = docScrollViewer.
Document
;
src\Framework\System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
92
FlowDocument document = ((FlowDocumentScrollViewer)Owner).
Document
;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
143
RenderScope.Document =
Document
;
219
FlowDocument flowDocument =
Document
;
355
/// <see cref="
Document
"/>
549
if (
Document
!= null)
562
paginator = ((IDocumentPaginatorSource)
Document
).DocumentPaginator as FlowDocumentPaginator;
566
_printingState.PagePadding =
Document
.PagePadding;
568
_printingState.ColumnWidth =
Document
.ColumnWidth;
591
pagePadding =
Document
.ComputePageMargin();
592
Document
.PagePadding = new Thickness(
597
Document
.ColumnWidth = double.PositiveInfinity;
753
DocumentViewerHelper.OnContextMenuOpening(
Document
, this, e);
781
if (HasLogicalChildren &&
Document
!= null)
783
return new SingleChildEnumerator(
Document
);
812
DependencyObject document = this.
Document
as DependencyObject;
830
DependencyObject document = this.
Document
as DependencyObject;
895
get { return (_findToolBarHost != null &&
Document
!= null && _textEditor != null); }
988
if (
Document
!= null)
991
Document
.StructuralCache.TextContainer.TextView = textView;
999
Document
!= null &&
1001
Document
.StructuralCache.TextContainer.TextSelection == null)
1003
_textEditor = new TextEditor(
Document
.StructuralCache.TextContainer, this, false);
1087
Document
.PagePadding = _printingState.PagePadding;
1088
Document
.ColumnWidth = _printingState.ColumnWidth;
1089
((IDocumentPaginatorSource)
Document
).DocumentPaginator.PageSize = _printingState.PageSize;
1111
if (args != null && args.TargetObject != null &&
Document
!= null)
1113
document =
Document
;
1427
args.CanExecute = (viewer.
Document
!= null);
1864
if (this.
Document
!= null)
1916
if (
Document
!= null)
1918
service = ((IServiceProvider)
Document
).GetService(serviceType);
1975
FlowDocument document =
Document
;