2 writes to _document
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (2)
393
_document
= null;
407
_document
= value;
24 references to _document
PresentationFramework (24)
System\Windows\Controls\RichTextBox.cs (24)
351
Invariant.Assert(
_document
!= null);
352
return
_document
;
359
if (value !=
_document
&&
366
if (
_document
!= null && this.TextSelectionInternal.ChangeBlockLevel > 0)
371
if (value ==
_document
)
378
bool initialSetting =
_document
== null;
381
if (
_document
!= null)
384
_document
.PageSizeChanged -= new EventHandler(this.OnPageSizeChangedHandler);
387
this.RemoveLogicalChild(
_document
);
390
_document
.TextContainer.CollectTextChanges = false;
408
_document
.SetDpi(this.GetDpi());
415
_document
.TextContainer.CollectTextChanges = true;
418
this.InitializeTextContainer(
_document
.TextContainer);
421
_document
.PageSizeChanged += new EventHandler(this.OnPageSizeChangedHandler);
424
this.AddLogicalChild(
_document
);
469
Block firstBlock =
_document
.Blocks.FirstBlock;
474
firstBlock ==
_document
.Blocks.LastBlock &&
539
if (this.
_document
== null)
547
return new SingleChildEnumerator(this.
_document
);
706
object defaultValue =
_document
.GetValue(property);
709
_document
.ClearValue(property);
710
defaultValue =
_document
.GetValue(property);
713
_document
.SetValue(property, inheritedValue);
749
_document
.SetValue(property, inheritedValue);