2 writes to _document
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (2)
391
_document
= null;
405
_document
= value;
24 references to _document
PresentationFramework (24)
System\Windows\Controls\RichTextBox.cs (24)
349
Invariant.Assert(
_document
!= null);
350
return
_document
;
357
if (value !=
_document
&&
364
if (
_document
!= null && this.TextSelectionInternal.ChangeBlockLevel > 0)
369
if (value ==
_document
)
376
bool initialSetting =
_document
== null;
379
if (
_document
!= null)
382
_document
.PageSizeChanged -= new EventHandler(this.OnPageSizeChangedHandler);
385
this.RemoveLogicalChild(
_document
);
388
_document
.TextContainer.CollectTextChanges = false;
406
_document
.SetDpi(this.GetDpi());
413
_document
.TextContainer.CollectTextChanges = true;
416
this.InitializeTextContainer(
_document
.TextContainer);
419
_document
.PageSizeChanged += new EventHandler(this.OnPageSizeChangedHandler);
422
this.AddLogicalChild(
_document
);
467
Block firstBlock =
_document
.Blocks.FirstBlock;
472
firstBlock ==
_document
.Blocks.LastBlock &&
537
if (this.
_document
== null)
545
return new SingleChildEnumerator(this.
_document
);
704
object defaultValue =
_document
.GetValue(property);
707
_document
.ClearValue(property);
708
defaultValue =
_document
.GetValue(property);
711
_document
.SetValue(property, inheritedValue);
747
_document
.SetValue(property, inheritedValue);