2 writes to Document
PresentationFramework (2)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
352
Document
= document;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1861
Document
= value as FlowDocument;
40 references to Document
PresentationFramework (40)
MS\Internal\Documents\IFlowDocumentViewer.cs (7)
221
if (newTextSelection != null &&
Document
!= null && IsValidTextSelectionForDocument(newTextSelection,
Document
))
223
ITextSelection textSelection =
Document
.StructuralCache.TextContainer.TextSelection;
366
if (value != null &&
Document
!= null)
385
if (value != null &&
Document
!= null)
414
get { return (
Document
!= null) ? 1 : 0; }
422
get { return (
Document
!= null) ? 1 : 0; }
System\Windows\Annotations\AnnotationService.cs (1)
1109
document = docScrollViewer.
Document
;
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
91
FlowDocument document = ((FlowDocumentScrollViewer)Owner).
Document
;
System\Windows\Controls\FlowDocumentScrollViewer.cs (31)
142
RenderScope.Document =
Document
;
218
FlowDocument flowDocument =
Document
;
354
/// <see cref="
Document
"/>
548
if (
Document
!= null)
561
paginator = ((IDocumentPaginatorSource)
Document
).DocumentPaginator as FlowDocumentPaginator;
565
_printingState.PagePadding =
Document
.PagePadding;
567
_printingState.ColumnWidth =
Document
.ColumnWidth;
590
pagePadding =
Document
.ComputePageMargin();
591
Document
.PagePadding = new Thickness(
596
Document
.ColumnWidth = double.PositiveInfinity;
747
DocumentViewerHelper.OnContextMenuOpening(
Document
, this, e);
775
if (HasLogicalChildren &&
Document
!= null)
777
return new SingleChildEnumerator(
Document
);
806
DependencyObject document = this.
Document
as DependencyObject;
824
DependencyObject document = this.
Document
as DependencyObject;
889
get { return (_findToolBarHost != null &&
Document
!= null && _textEditor != null); }
980
if (
Document
!= null)
983
Document
.StructuralCache.TextContainer.TextView = textView;
991
Document
!= null &&
993
Document
.StructuralCache.TextContainer.TextSelection == null)
995
_textEditor = new TextEditor(
Document
.StructuralCache.TextContainer, this, false);
1079
Document
.PagePadding = _printingState.PagePadding;
1080
Document
.ColumnWidth = _printingState.ColumnWidth;
1081
((IDocumentPaginatorSource)
Document
).DocumentPaginator.PageSize = _printingState.PageSize;
1103
if (args != null && args.TargetObject != null &&
Document
!= null)
1105
document =
Document
;
1419
args.CanExecute = (viewer.
Document
!= null);
1853
if (this.
Document
!= null)
1902
if (
Document
!= null)
1904
service = ((IServiceProvider)
Document
).GetService(serviceType);
1961
FlowDocument document =
Document
;