2 writes to _document
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (2)
390
_document
= null;
404
_document
= value;
24 references to _document
PresentationFramework (24)
System\Windows\Controls\RichTextBox.cs (24)
348
Invariant.Assert(
_document
!= null);
349
return
_document
;
356
if (value !=
_document
&&
363
if (
_document
!= null && this.TextSelectionInternal.ChangeBlockLevel > 0)
368
if (value ==
_document
)
375
bool initialSetting =
_document
== null;
378
if (
_document
!= null)
381
_document
.PageSizeChanged -= new EventHandler(this.OnPageSizeChangedHandler);
384
this.RemoveLogicalChild(
_document
);
387
_document
.TextContainer.CollectTextChanges = false;
405
_document
.SetDpi(this.GetDpi());
412
_document
.TextContainer.CollectTextChanges = true;
415
this.InitializeTextContainer(
_document
.TextContainer);
418
_document
.PageSizeChanged += new EventHandler(this.OnPageSizeChangedHandler);
421
this.AddLogicalChild(
_document
);
466
Block firstBlock =
_document
.Blocks.FirstBlock;
471
firstBlock ==
_document
.Blocks.LastBlock &&
536
if (this.
_document
== null)
544
return new SingleChildEnumerator(this.
_document
);
703
object defaultValue =
_document
.GetValue(property);
706
_document
.ClearValue(property);
707
defaultValue =
_document
.GetValue(property);
710
_document
.SetValue(property, inheritedValue);
746
_document
.SetValue(property, inheritedValue);