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)
348Invariant.Assert(_document != null); 349return _document; 356if (value != _document && 363if (_document != null && this.TextSelectionInternal.ChangeBlockLevel > 0) 368if (value == _document) 375bool initialSetting = _document == null; 378if (_document != null) 381_document.PageSizeChanged -= new EventHandler(this.OnPageSizeChangedHandler); 384this.RemoveLogicalChild(_document); 387_document.TextContainer.CollectTextChanges = false; 405_document.SetDpi(this.GetDpi()); 412_document.TextContainer.CollectTextChanges = true; 415this.InitializeTextContainer(_document.TextContainer); 418_document.PageSizeChanged += new EventHandler(this.OnPageSizeChangedHandler); 421this.AddLogicalChild(_document); 466Block firstBlock = _document.Blocks.FirstBlock; 471firstBlock == _document.Blocks.LastBlock && 536if (this._document == null) 544return new SingleChildEnumerator(this._document); 703object defaultValue = _document.GetValue(property); 706_document.ClearValue(property); 707defaultValue = _document.GetValue(property); 710_document.SetValue(property, inheritedValue); 746_document.SetValue(property, inheritedValue);