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)
351Invariant.Assert(_document != null); 352return _document; 359if (value != _document && 366if (_document != null && this.TextSelectionInternal.ChangeBlockLevel > 0) 371if (value == _document) 378bool initialSetting = _document == null; 381if (_document != null) 384_document.PageSizeChanged -= new EventHandler(this.OnPageSizeChangedHandler); 387this.RemoveLogicalChild(_document); 390_document.TextContainer.CollectTextChanges = false; 408_document.SetDpi(this.GetDpi()); 415_document.TextContainer.CollectTextChanges = true; 418this.InitializeTextContainer(_document.TextContainer); 421_document.PageSizeChanged += new EventHandler(this.OnPageSizeChangedHandler); 424this.AddLogicalChild(_document); 469Block firstBlock = _document.Blocks.FirstBlock; 474firstBlock == _document.Blocks.LastBlock && 539if (this._document == null) 547return new SingleChildEnumerator(this._document); 706object defaultValue = _document.GetValue(property); 709_document.ClearValue(property); 710defaultValue = _document.GetValue(property); 713_document.SetValue(property, inheritedValue); 749_document.SetValue(property, inheritedValue);